# Functions
Capacity sets the capacity.
Clock sets the clock.
ErrorHandler sets error handler of the server.
ExtractRates sets the rate extractor.
Logger defines the logger the token limiter will use.
New constructs a `TokenLimiter` middleware instance.
NewRateSet crates an empty `RateSet` instance.
NewTokenBucketSet creates a `TokenBucketSet` from the specified `rates`.
# Structs
MaxRateError max rate error.
RateErrHandler error handler.
RateSet maintains a set of rates.
TokenBucketSet represents a set of TokenBucket covering different time periods.
TokenLimiter implements rate limiting middleware.
# Interfaces
RateExtractor rate extractor.
# Type aliases
RateExtractorFunc rate extractor function type.
TokenLimiterOption token limiter option type.