ifacemonitor

package
v0.0.0-...-4b07c9a Latest Latest
Warning

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

Go to latest
Published: Aug 29, 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