Package import | "zappem.net/pub/net/netcounts" |
---|---|
Documentation | https://pkg.go.dev/zappem.net/pub/net/netcounts |
Sources | https://github.com/tinkerator/netcounts |
The netcounts
package provides a Go
API for monitoring
network traffic. It works by parsing the command output of the
ifconfig
program.
$ git clone https://github.com/tinkerator/netcounts.git
$ cd netcounts
$ go get
$ go build examples/watch.go
$ ./watch
The default output summarizes total packets and bytes transferred over all of the non-loopback network devices.
The netcounts
package is distributed with the same BSD 3-clause
license as that used by golang itself.
The netcounts
package has been developed purely out of self-interest
If you find a bug or want to suggest a feature addition, please use
the bug tracker.