bwmon

package
v0.0.0-...-288f2f5 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2021 License: GPL-3.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

View Source
const (
	RX = iota
	TX
)

Variables

This section is empty.

Functions

func GetBandwidthUtilization

func GetBandwidthUtilization(device string, direction int) func() float64

GetBandwidthUtilization returns a function that will report the current bytes counter for the specified interface and direction (transmit / receive), as read from /proc/net/dev.

Types

This section is empty.

Jump to

Keyboard shortcuts

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