ifacemonitor

package
v0.0.0-...-712e5b7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StateUp   = "up"
	StateDown = "down"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AddrStateCallback

type AddrStateCallback func(ifaceName string, addrs set.Set)

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

type InterfaceStateCallback func(ifaceName string, ifaceState State)

type State

type State string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL