net.go 1018 B

1234567891011121314151617
  1. package model
  2. type IOCountersStat struct {
  3. Name string `json:"name"` // interface name
  4. BytesSent uint64 `json:"bytesSent"` // number of bytes sent
  5. BytesRecv uint64 `json:"bytesRecv"` // number of bytes received
  6. PacketsSent uint64 `json:"packetsSent"` // number of packets sent
  7. PacketsRecv uint64 `json:"packetsRecv"` // number of packets received
  8. Errin uint64 `json:"errin"` // total number of errors while receiving
  9. Errout uint64 `json:"errout"` // total number of errors while sending
  10. Dropin uint64 `json:"dropin"` // total number of incoming packets which were dropped
  11. Dropout uint64 `json:"dropout"` // total number of outgoing packets which were dropped (always 0 on OSX and BSD)
  12. Fifoin uint64 `json:"fifoin"` // total number of FIFO buffers errors while receiving
  13. Fifoout uint64 `json:"fifoout"` // total number of FIFO buffers errors while sending
  14. State string `json:"state"`
  15. Time int64 `json:"time"`
  16. }