Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RateLimitedConn ¶
TODO: would it make sense to merge this with the connRateLimiter?
func NewRateLimitedConn ¶
func NewRateLimitedConn(conn net.Conn, bandwidthLimiter Limiter, logger commontypes.Logger) *RateLimitedConn
func (*RateLimitedConn) EnableRateLimiting ¶
func (r *RateLimitedConn) EnableRateLimiting()
EnableRateLimiting is not thread-safe!
Click to show internal directories.
Click to hide internal directories.