# Functions
DefaultErrorHandler is the default ErrorHandler used by a new Middleware.
DefaultKeyGetter is the default KeyGetter used by a new Middleware.
DefaultLimitReachedHandler is the default LimitReachedHandler used by a new Middleware.
NewMiddleware return a new instance of a basic HTTP middleware.
WithErrorHandler will configure the Middleware to use the given ErrorHandler.
WithExcludedKey will configure the Middleware to ignore key(s) using the given function.
WithKeyGetter will configure the Middleware to use the given KeyGetter.
WithLimitReachedHandler will configure the Middleware to use the given LimitReachedHandler.
# Structs
Middleware is the middleware for basic http.Handler.
# Interfaces
Option is used to define Middleware configuration.
# Type aliases
ErrorHandler is an handler used to inform when an error has occurred.
KeyGetter will define the rate limiter key given the gin Context.
LimitReachedHandler is an handler used to inform when the limit has exceeded.