Documentation ¶
Index ¶
- func WrapConn(c net.Conn, tlimiter traffic.TrafficLimiter, key string, ...) net.Conn
- func WrapListener(service string, ln net.Listener, limiter traffic.TrafficLimiter) net.Listener
- func WrapPacketConn(pc net.PacketConn, lim traffic.TrafficLimiter, key string, ...) net.PacketConn
- func WrapReadWriter(limiter traffic.TrafficLimiter, rw io.ReadWriter, key string, ...) io.ReadWriter
- func WrapUDPConn(pc net.PacketConn, limiter traffic.TrafficLimiter, key string, ...) udp.Conn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WrapListener ¶
func WrapPacketConn ¶
func WrapPacketConn(pc net.PacketConn, lim traffic.TrafficLimiter, key string, opts ...limiter.Option) net.PacketConn
func WrapReadWriter ¶
func WrapReadWriter(limiter traffic.TrafficLimiter, rw io.ReadWriter, key string, opts ...limiter.Option) io.ReadWriter
func WrapUDPConn ¶
func WrapUDPConn(pc net.PacketConn, limiter traffic.TrafficLimiter, key string, opts ...limiter.Option) udp.Conn
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.