Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TrackPacketConn ¶
type TrackPacketConn struct { N.PacketConn *Traffic }
func (*TrackPacketConn) ReadPacket ¶
func (*TrackPacketConn) Upstream ¶
func (c *TrackPacketConn) Upstream() any
func (*TrackPacketConn) WritePacket ¶
type TrafficManager ¶
type TrafficManager[U comparable] struct { // contains filtered or unexported fields }
func NewTrafficManager ¶
func NewTrafficManager[U comparable]() *TrafficManager[U]
func (*TrafficManager[U]) ReadTraffics ¶
func (m *TrafficManager[U]) ReadTraffics() map[U]Traffic
func (*TrafficManager[U]) TrackConnection ¶
func (m *TrafficManager[U]) TrackConnection(user U, conn net.Conn) net.Conn
func (*TrafficManager[U]) TrackPacketConnection ¶
func (m *TrafficManager[U]) TrackPacketConnection(user U, conn N.PacketConn) N.PacketConn
Click to show internal directories.
Click to hide internal directories.