zbandwidth

package
v0.0.0-...-9d1b792 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadLines

func ReadLines(filename string) ([]string, error)

func Vsize

func Vsize(bytes uint64, delta float64) (ret string)

Types

type DevStat

type DevStat struct {
	Name string
	Rx   uint64
	Tx   uint64
}

type NetStat

type NetStat struct {
	Dev  []string
	Stat map[string]*DevStat
}

func NewNetStat

func NewNetStat() *NetStat

type NetTop

type NetTop struct {
	Interface string
	// contains filtered or unexported fields
}

func NewNetTop

func NewNetTop() *NetTop

func (*NetTop) Update

func (nt *NetTop) Update() (*NetStat, time.Duration)

type ZBandwidth

type ZBandwidth struct {
	// contains filtered or unexported fields
}

func New

func New(iface string) *ZBandwidth

func (*ZBandwidth) Get

func (f *ZBandwidth) Get() (rx float64, tx float64)

func (*ZBandwidth) GetRx

func (f *ZBandwidth) GetRx() (ret float64)

func (*ZBandwidth) GetString

func (f *ZBandwidth) GetString() (ret string)

func (*ZBandwidth) GetTx

func (f *ZBandwidth) GetTx() (ret float64)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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