Versions in this module Expand all Collapse all v1 v1.0.2 Sep 12, 2024 Changes in this version + func NewTCPTracker(conn C.Conn, manager *Manager, metadata *C.Metadata, rule C.Rule) *tcpTracker + func NewUDPTracker(conn C.PacketConn, manager *Manager, metadata *C.Metadata, rule C.Rule) *udpTracker + type Manager struct + var DefaultManager *Manager + func (m *Manager) Join(c tracker) + func (m *Manager) Leave(c tracker) + func (m *Manager) Now() (up int64, down int64) + func (m *Manager) PushDownloaded(size int64) + func (m *Manager) PushUploaded(size int64) + func (m *Manager) ResetStatistic() + func (m *Manager) Snapshot() *Snapshot + func (m *Manager) Total() (up, down int64) + type Snapshot struct + Connections []tracker + DownloadTotal int64 + UploadTotal int64