Documentation ¶
Overview ¶
The stat package provides support for collecting libpcap stats.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Stat ¶
type Stat struct { Captured uint32 // The number of packets captured. Received uint32 // The number of packets received (pre-filter). Dropped uint32 // The number of packets dropped. IfDropped uint32 // The number of drops by the interface. }
Stat is the wrapper for the pcap_stat struct in <pcap.h>.
func (*Stat) JsonString ¶
JsonElement returns and JSON encoded form of the Stat struct.
Click to show internal directories.
Click to hide internal directories.