Documentation
¶
Overview ¶
Package redislimiter is the Redis-backed sliding-window rate limiter over ratelimit.Limit buckets.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Limiter ¶
type Limiter struct {
// contains filtered or unexported fields
}
Limiter is a Redis-backed sliding window limiter using ZSETs.
func New ¶
New builds a Redis sliding-window limiter whose keys live under prefix (the deployment namespace, #307): <prefix><key>:<bucket>.
func (*Limiter) AllowNamed ¶
AllowNamed matches the auth adapter's internal interface.
Click to show internal directories.
Click to hide internal directories.