Documentation ¶
Index ¶
Constants ¶
View Source
const ( TrackingPeriod = 30 // minutes DefaultSnapLen = 262144 )
Variables ¶
This section is empty.
Functions ¶
func GetDefaultInterface ¶
GetDefaultInterface returns the interface for the default interface This refers to the interface with the primary route (also seen in bash through ip route show)
Types ¶
type NetworkUsage ¶
type NetworkUsage struct { Inbound [TrackingPeriod]uint64 `json:"inbound"` Outbound [TrackingPeriod]uint64 `json:"outbound"` }
Click to show internal directories.
Click to hide internal directories.