Versions in this module Expand all Collapse all v0 v0.0.1 Jun 17, 2020 Changes in this version + const MaxConnBuffer + var DefaultTracker = Tracker + func FormatCID(cid ConnectionID) string + func IPPort(ip string, port uint16) string + type ConnUpdate struct + Connection ConnectionID + Data ExportData + type ConnectionID struct + DAddr string + DPort uint16 + SAddr string + SPort uint16 + type ExportData struct + BytesRecv uint64 + BytesRecvPerSecond uint64 + BytesSent uint64 + BytesSentPerSecond uint64 + LastUpdated time.Time + type NodeUpdate struct + BytesRecv uint64 + BytesRecvPerSecond uint64 + BytesSent uint64 + BytesSentPerSecond uint64 + LastUpdated time.Time + NumConnections uint16 + type Tracker struct + Config *ebpf.Config + ConnUpdateChan chan ConnUpdate + NodeUpdateChan chan NodeUpdate + Tick time.Duration + Timeout time.Duration + func NewTracker() *Tracker + func (t *Tracker) GetBytesRecv() uint64 + func (t *Tracker) GetBytesRecvPerSecond() uint64 + func (t *Tracker) GetBytesSent() uint64 + func (t *Tracker) GetBytesSentPerSecond() uint64 + func (t *Tracker) GetConnectionData() map[ConnectionID]ExportData + func (t *Tracker) GetNumConnections() uint16 + func (t *Tracker) GetTotalBytesRecv() uint64 + func (t *Tracker) GetTotalBytesSent() uint64 + func (t *Tracker) ResetStats() error + func (t *Tracker) StartTracker() + func (t *Tracker) Stop()