Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RateLimitInfo ¶
type RateLimiter ¶
type RateLimiter struct {
// contains filtered or unexported fields
}
func New ¶
func New(cfg config.RateLimiter) (*RateLimiter, error)
func (*RateLimiter) RateLimit ¶
func (rl *RateLimiter) RateLimit(key string) (bool, RateLimitInfo, error)
Click to show internal directories.
Click to hide internal directories.