Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NetlinkMonitor ¶
type NetlinkMonitor struct {
// contains filtered or unexported fields
}
NetlinkMonitor keeps track of the interfaces on this host.
func NewNetlinkMonitor ¶
func NewNetlinkMonitor(ignoreIntfs []string) (*NetlinkMonitor, error)
NewNetlinkMonitor instantiate netlink monitor
func (*NetlinkMonitor) Start ¶
func (m *NetlinkMonitor) Start(re Reconnector)
Start start monitoring
type Reconnector ¶
type Reconnector interface {
Reconnect(stateIsUp bool)
}
Reconnector interface to reconnect on network state changes
Click to show internal directories.
Click to hide internal directories.