Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatBytes ¶
FormatBytes formats byte counts using decimal units (1 KB = 1000 bytes).
func FormatRate ¶
FormatRate formats bytes per second using decimal units (1 KB/s = 1000 B/s).
Types ¶
type InterfaceStat ¶
InterfaceStat represents raw network device statistics
func ReadInterfaceStats ¶
func ReadInterfaceStats() ([]InterfaceStat, error)
ReadInterfaceStats reads raw byte counters from /proc/net/dev
Click to show internal directories.
Click to hide internal directories.