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