ethu

package
v0.9.6 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNicSpeed

func GetNicSpeed(nic string) (int, error)

GetNicSpeed get nic speed in Mbps.

func NetDevStats

func NetDevStats(nic ...string) (map[string]map[string]uint64, error)

NetDevStats get statistics about nic 根据网卡名获取网卡运行状态,用途之一是用来计算RX和TX速度,支持获取多个nic状态.

Types

This section is empty.

Jump to

Keyboard shortcuts

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