Documentation
¶
Index ¶
- type 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
- type XrayTrafficCounter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TrafficCounter ¶
func NewTrafficCounter ¶
func NewTrafficCounter() *TrafficCounter
func (*TrafficCounter) Delete ¶
func (c *TrafficCounter) Delete(uuid string)
func (*TrafficCounter) GetCounter ¶
func (c *TrafficCounter) GetCounter(uuid string) *TrafficStorage
func (*TrafficCounter) GetDownCount ¶
func (c *TrafficCounter) GetDownCount(uuid string) int64
func (*TrafficCounter) GetUpCount ¶
func (c *TrafficCounter) GetUpCount(uuid string) int64
func (*TrafficCounter) Len ¶
func (c *TrafficCounter) Len() int
func (*TrafficCounter) Reset ¶
func (c *TrafficCounter) Reset(uuid string)
func (*TrafficCounter) Rx ¶
func (c *TrafficCounter) Rx(uuid string, n int)
func (*TrafficCounter) Tx ¶
func (c *TrafficCounter) Tx(uuid string, n int)
type TrafficStorage ¶
type XrayTrafficCounter ¶
func (*XrayTrafficCounter) Add ¶
func (c *XrayTrafficCounter) Add(delta int64) int64
func (*XrayTrafficCounter) Set ¶
func (c *XrayTrafficCounter) Set(newValue int64) int64
func (*XrayTrafficCounter) Value ¶
func (c *XrayTrafficCounter) Value() int64
Click to show internal directories.
Click to hide internal directories.