Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrReadLimitExcedeed = errors.New("ratelimiter: read limit exceeded")
ErrReadLimitExcedeed will be returned by Read method when current rate limit is exceeded.
Functions ¶
This section is empty.
Types ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader implements io.Reader interface.
func (*Reader) ReadRateLimiter ¶
ReadRateLimiter returns previously set rate limiter.
func (*Reader) SetReadRateLimiter ¶
SetReadRateLimiter sets current ReadWriter read rate limit.
Click to show internal directories.
Click to hide internal directories.