Documentation ¶
Index ¶
Constants ¶
View Source
const NUM_REDIS_RETRY = 3
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisRateLimiter ¶
type RedisRateLimiter struct {
// contains filtered or unexported fields
}
func NewRedisRateLimiter ¶
func NewRedisRateLimiter(tid tenant.Id, addr string, rqs int) *RedisRateLimiter
func (*RedisRateLimiter) Limit ¶
func (r *RedisRateLimiter) Limit() int
func (*RedisRateLimiter) SetLimit ¶
func (r *RedisRateLimiter) SetLimit(newLimit int) error
Click to show internal directories.
Click to hide internal directories.