Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RateLimitingMiddleware ¶
type RateLimitingMiddleware interface {
DecorateHandler(handler httprouter.Handle) httprouter.Handle
}
func NewRateLimiter ¶
func NewRateLimiter(cfg config.RateLimiting, red *redis.Pool, logger *logging.Logger) (RateLimitingMiddleware, error)
type RedisSimpleRateThrottler ¶
type RedisSimpleRateThrottler struct {
// contains filtered or unexported fields
}
func (*RedisSimpleRateThrottler) DecorateHandler ¶
func (t *RedisSimpleRateThrottler) DecorateHandler(handler httprouter.Handle) httprouter.Handle
Click to show internal directories.
Click to hide internal directories.