Versions in this module Expand all Collapse all v0 v0.3.3 Apr 6, 2026 Changes in this version + type TrafficCounter struct + Counters sync.Map + func NewTrafficCounter() *TrafficCounter + func (c *TrafficCounter) Delete(uuid string) + func (c *TrafficCounter) GetCounter(uuid string) *TrafficStorage + func (c *TrafficCounter) GetDownCount(uuid string) int64 + func (c *TrafficCounter) GetUpCount(uuid string) int64 + func (c *TrafficCounter) Len() int + func (c *TrafficCounter) Reset(uuid string) + func (c *TrafficCounter) Rx(uuid string, n int) + func (c *TrafficCounter) Tx(uuid string, n int) + type TrafficStorage struct + DownCounter atomic.Int64 + UpCounter atomic.Int64 + type XrayTrafficCounter struct + V *atomic.Int64 + func (c *XrayTrafficCounter) Add(delta int64) int64 + func (c *XrayTrafficCounter) Set(newValue int64) int64 + func (c *XrayTrafficCounter) Value() int64