Documentation ¶
Overview ¶
Package netdev gets the system's network device information: /proc/net/dev.
Index ¶
Constants ¶
View Source
const ProcFile = "/proc/net/dev"
ProcFile is the file used by the netdev Profiler.
Variables ¶
This section is empty.
Functions ¶
func NewTicker ¶
NewTicker returns a new Ticker containing a Data channel that delivers the data at intervals and an error channel that delivers any errors encountered. Stop the ticker to signal the ticker to stop running. Stopping the ticker does not close the Data channel; call Close to close both the ticker and the data channel.
Types ¶
type Profiler ¶
Profiler is used to process the network device information using the /proc/net/dev file.
func NewProfiler ¶
Returns an initialized Profiler; ready to use.
Directories ¶
Path | Synopsis |
---|---|
Package netdev gets the system's network device information: /proc/net/dev.
|
Package netdev gets the system's network device information: /proc/net/dev. |
Package netdev gets the system's network device information: /proc/net/dev.
|
Package netdev gets the system's network device information: /proc/net/dev. |
Click to show internal directories.
Click to hide internal directories.