Documentation
¶
Index ¶
Constants ¶
View Source
const ( UpProxy = "outbound>>>proxy>>>traffic>>>uplink" DownProxy = "outbound>>>proxy>>>traffic>>>downlink" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Counter ¶
type Counter struct {
// contains filtered or unexported fields
}
Counter is an implementation of stats.Counter.
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
NewManager creates an instance of Statistics Manager.
func (*Manager) GetCounter ¶
func (*Manager) RegisterCounter ¶
RegisterCounter implements stats.Manager.
func (*Manager) UnregisterCounter ¶
type StatsConn ¶
func NewStatsConn ¶
type StatsPacketConn ¶
type StatsPacketConn struct { net.PacketConn CounterDown *Counter CounterUp *Counter }
func NewStatsPacketConn ¶
func NewStatsPacketConn(pc net.PacketConn) StatsPacketConn
Click to show internal directories.
Click to hide internal directories.