Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SharedRateLimiter ¶
type SharedRateLimiter struct { Clock Limit int InactivityTimeout time.Duration // contains filtered or unexported fields }Time
func (*SharedRateLimiter) LimitRate ¶
func (srl *SharedRateLimiter) LimitRate(client string)
func (*SharedRateLimiter) Stop ¶
func (srl *SharedRateLimiter) Stop() error
Stop stops the shared rate limiter. Not thread safe.
Click to show internal directories.
Click to hide internal directories.