Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RateLimiter ¶
type RateLimiter struct { Limiters *cache.Cache MaxTime time.Duration TimeStep time.Duration Config *Config WhiteList map[string]interface{} BlackList map[string]interface{} }
func NewRateLimiter ¶
func NewRateLimiter(config *Config) *RateLimiter
func (*RateLimiter) CanHandle ¶
func (rl *RateLimiter) CanHandle(key string) bool
Click to show internal directories.
Click to hide internal directories.