procfs

package
v1.4.6 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NetDev = "/proc/net/dev"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type TxRx

type TxRx struct {
	InterfaceName string

	RxBytes      int64
	RxPackets    int64
	RxErrs       int64
	RxDropMiss   int64
	RxFifoErrs   int64
	RxFrameErrs  int64
	RxCompressed int64

	TxBytes       int64
	TxPackets     int64
	TxErrs        int64
	TxDropMiss    int64
	TxFifoErrs    int64
	TxCarrierErrs int64
	TxCompressed  int64

	Collisions int64
	Multicast  int64
}

func InterfacesTxRx

func InterfacesTxRx() (txRxes []TxRx, err error)

Jump to

Keyboard shortcuts

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