Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
Config is the configuration for the in-memory rate limiter.
func (Config) DefaultsAndValidate ¶
DefaultsAndValidate implements the jsontype.Config interface.
type RateLimiter ¶
RateLimiter is an interface for rate limiting.
func NewMemory ¶
func NewMemory(conf Config) RateLimiter
NewMemory returns a new RateLimiter that uses an in-memory implementation.
Click to show internal directories.
Click to hide internal directories.