monitor

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	NewLink  func(link netlink.LinkUpdate)
	DelLink  func(link netlink.LinkUpdate)
	NewAddr  func(addr netlink.AddrUpdate)
	DelAddr  func(addr netlink.AddrUpdate)
	NewRoute func(route netlink.RouteUpdate)
	DelRoute func(route netlink.RouteUpdate)
}

type Monitor

type Monitor struct {
	// contains filtered or unexported fields
}

func NewMonitor

func NewMonitor() *Monitor
func (m *Monitor) AddLink(index int, handler Handler)
func (m *Monitor) DelLink(index int)
func (m *Monitor) EmptyLink()

func (*Monitor) Start

func (m *Monitor) Start(ctx context.Context)

Jump to

Keyboard shortcuts

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