Documentation ¶
Index ¶
Constants ¶
View Source
const ( MaxTTLCount = 15 MaxMacCount = 3 MaxUaCount = 5 )
Variables ¶
View Source
var ( TTLObserver = newObserver[uint8](types.ZSetObserverTTL, MaxTTLCount, false) MacObserver = newObserver[string](types.ZSetObserverMac, MaxMacCount, true) UaObserver = newObserver[string](types.ZSetObserverUa, MaxUaCount, true) DeviceObserver = newObserver[types.DeviceRecord](types.ZSetObserverDevice, MaxMacCount, true) TTLEvents = make(chan ChangeObserverEvent[uint8], 100) MacEvents = make(chan ChangeObserverEvent[string], 100) UaEvents = make(chan ChangeObserverEvent[string], 100) DeviceEvents = make(chan ChangeObserverEvent[types.DeviceRecord], 100) )
Functions ¶
Types ¶
type ChangeObserverEvent ¶
ChangeObserverEvent 观察事件
Click to show internal directories.
Click to hide internal directories.