package job import ( "github.com/mhsanaei/3x-ui/v3/internal/eventbus" ) // EventBus is set from the web layer to publish events. It lived in the // local-core watchdog job file until P9(4b) removed the local-core jobs; // the CPU/memory/node jobs still publish through it. var EventBus *eventbus.Bus // clientStatsSnapshotMaxClients caps how many client_traffics rows a // traffic snapshot folds into a single stats event. const clientStatsSnapshotMaxClients = 5000 // IPWithTimestamp tracks an IP address with its last seen timestamp. type IPWithTimestamp struct { IP string `json:"ip"` Timestamp int64 `json:"timestamp"` }