Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Limiter ¶
Limiter limits operations based on a provided key.
func NewLocalRateLimiter ¶
NewRedisRateLimiter returns an in memory limiter.
func NewRedisRateLimiter ¶
func NewRedisRateLimiter(limiter *redis_rate.Limiter, limit *redis_rate.Limit) Limiter
NewRedisRateLimiter returns a redis backed limiter.
type LimiterCtor ¶
LimiterCtor allows the creation of a Limiter using a provided rate.
Click to show internal directories.
Click to hide internal directories.