Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LimitFactory ¶
type LimitFactory interface {
Create() Limit
}
LimitFactory is an interface for creating per-connection rate limiters
type Limiter ¶
type Limiter struct {
// contains filtered or unexported fields
}
Limiter is wrapper around golang's rate.Limit for more balanced rate limiting among multiple connections
func NewRateLimiter ¶
NewRateLimiter returns a new Limiter
Click to show internal directories.
Click to hide internal directories.