go_linux_apis

package module
v0.0.0-...-58e368c Latest Latest
Warning

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

Go to latest
Published: May 12, 2019 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNetDev

func GetNetDev() (map[string]NetDev, error)

Types

type NetDev

type NetDev struct {
	Receive  NetDevReceive
	Transmit NetDevTransmit
}

type NetDevReceive

type NetDevReceive struct {
	Bytes, Packets, Errs, Drop, Fifo, Frame, Compressed, Multicast uint64
}

type NetDevTransmit

type NetDevTransmit struct {
	Bytes, Packets, Errs, Drop, Fifo, Colls, Carrier, Compressed uint64
}

type Uptime

type Uptime struct {
	UpTime, IdleTime time.Duration
}

func GetUptime

func GetUptime() (Uptime, error)

Jump to

Keyboard shortcuts

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