netstate

package
v0.0.0-...-851e5e8 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

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

Jump to

Keyboard shortcuts

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