Versions in this module Expand all Collapse all v0 v0.1.0 Apr 26, 2021 Changes in this version + type NetMonitor struct + Err error + Interfaces []string + LinuxNetDevDir string + Running bool + func NetMonitorNew(interf string, interval float64) (nt *NetMonitor, err error) + func (nt *NetMonitor) GetAvailableInterfaces() ([]string, error) + func (nt *NetMonitor) GetCurrInterface() string + func (nt *NetMonitor) SetInterface(interf string) error + func (nt *NetMonitor) SetInterval(interval float64) + func (nt *NetMonitor) Start(callback func(stats *NetStat)) + func (nt *NetMonitor) Stop() + type NetStat struct + Dev []string + Stat map[string]*devStat