Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type KeyRateLimiter ¶
type KeyRateLimiter struct {
// contains filtered or unexported fields
}
func NewKeyRateLimiter ¶
func NewKeyRateLimiter(r float64, b int, t int) *KeyRateLimiter
func (*KeyRateLimiter) GetLimiter ¶
func (k *KeyRateLimiter) GetLimiter(key string) *Limiter
type Limiter ¶
type Limiter struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.