Documentation ¶
Index ¶
Constants ¶
View Source
const ( StateUp = "up" StateDown = "down" )
Variables ¶
This section is empty.
Functions ¶
func IsInterfacePresent ¶
Types ¶
type AddrStateCallback ¶
type InterfaceMonitor ¶
type InterfaceMonitor struct { Config Callback InterfaceStateCallback AddrCallback AddrStateCallback // contains filtered or unexported fields }
func New ¶
func New(config Config) *InterfaceMonitor
func NewWithStubs ¶
func NewWithStubs(config Config, netlinkStub netlinkStub, resyncC <-chan time.Time) *InterfaceMonitor
func (*InterfaceMonitor) MonitorInterfaces ¶
func (m *InterfaceMonitor) MonitorInterfaces()
type InterfaceStateCallback ¶
Click to show internal directories.
Click to hide internal directories.