Documentation ¶ Index ¶ type Context type NetInfo func GetNetInfo() NetInfo type NicInfo Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Context ¶ type Context struct { Procfs string } var Ctx Context type NetInfo ¶ type NetInfo struct { NicNum int // 网卡数量 Nics []NicInfo // 每个网卡的状态信息 } func GetNetInfo ¶ func GetNetInfo() NetInfo type NicInfo ¶ type NicInfo struct { Name string RBytes int RPackets int RErrs int RDrop int RFifo int RFrame int RComporessed int RMulticast int TBytes int TPackets int TErrs int TDrop int TFifo int TFrame int TComporessed int TMulticast int } Source Files ¶ View all Source files net.go Click to show internal directories. Click to hide internal directories.