Documentation ¶
Index ¶
Constants ¶
View Source
const ( StateUp = "up" StateDown = "down" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddrStateCallback ¶
type InterfaceMonitor ¶
type InterfaceMonitor struct { Callback InterfaceStateCallback AddrCallback AddrStateCallback // contains filtered or unexported fields }
func New ¶
func New() *InterfaceMonitor
func NewWithStubs ¶
func NewWithStubs(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.