Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisIPRateLimiter ¶
type RedisIPRateLimiter struct {
// contains filtered or unexported fields
}
RedisIPRateLimiter is the redis store that implements IP Based rate limiter
func NewRedisIPRateLimiter ¶
func NewRedisIPRateLimiter(redisClient *redis.Client, rate limiter.Rate, excludedIPs []string) (redisLimiter RedisIPRateLimiter, err error)
NewRedisIPRateLimiter initializes RedisIPRateLimiter
func (RedisIPRateLimiter) Limit ¶
func (r RedisIPRateLimiter) Limit() echo.MiddlewareFunc
Limit limit request by IP
Click to show internal directories.
Click to hide internal directories.