networking

package
v0.0.0-...-e06cd52 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IPAddresses

func IPAddresses() (common.MeasurementsMap, error)

Types

type NetWatcher

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

func NewWatcher

func NewWatcher(cfg NetWatcherConfig) *NetWatcher

func (*NetWatcher) ExcludedInterfacesByName

func (nw *NetWatcher) ExcludedInterfacesByName(allInterfaces []utilnet.InterfaceStat) map[string]struct{}

func (*NetWatcher) InterfaceExcludeRegexCompiled

func (nw *NetWatcher) InterfaceExcludeRegexCompiled() []*regexp.Regexp

InterfaceExcludeRegexCompiled compiles and cache all the interfaces-filtering regexp's user has specified in the Config So we don't need to compile them on each iteration of measurements

func (*NetWatcher) Results

func (nw *NetWatcher) Results() (common.MeasurementsMap, error)

type NetWatcherConfig

type NetWatcherConfig struct {
	NetInterfaceExclude             []string
	NetInterfaceExcludeRegex        []string
	NetInterfaceExcludeDisconnected bool
	NetInterfaceExcludeLoopback     bool
	NetMetrics                      []string
	NetInterfaceMaxSpeed            uint64
}

Jump to

Keyboard shortcuts

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