Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RateLimit ¶
type RateLimiter ¶
type RateLimiter struct {
// contains filtered or unexported fields
}
func NewRateLimiter ¶
func NewRateLimiter() *RateLimiter
func (*RateLimiter) Clear ¶
func (r *RateLimiter) Clear()
func (*RateLimiter) Get ¶
func (r *RateLimiter) Get(bucket string) *RateLimit
func (*RateLimiter) Remove ¶
func (r *RateLimiter) Remove(bucket string)
func (*RateLimiter) Set ¶
func (r *RateLimiter) Set(bucket string, rl *RateLimit)
Click to show internal directories.
Click to hide internal directories.