Documentation ¶
Index ¶
- Variables
- func NewApiKey(apiKey string) echo.MiddlewareFunc
- func NewAuth0ValidatorMiddleware(validator jwt.Auth0Validator) echo.MiddlewareFunc
- func NewCustomLogger() middleware.LoggerConfig
- func NewRateLimit(opts RateLimitOpts) middleware.RateLimiterConfig
- func NewRequestIdMiddleware() echo.MiddlewareFunc
- type RateLimitOpts
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultRateLimit = RateLimitOpts{ Rate: 100, Burst: 10, ExpiresIn: 1 * time.Minute, }
Functions ¶
func NewApiKey ¶
func NewApiKey(apiKey string) echo.MiddlewareFunc
NewApiKey configures the options to implements an api key.
func NewAuth0ValidatorMiddleware ¶
func NewAuth0ValidatorMiddleware(validator jwt.Auth0Validator) echo.MiddlewareFunc
func NewCustomLogger ¶
func NewCustomLogger() middleware.LoggerConfig
func NewRateLimit ¶
func NewRateLimit(opts RateLimitOpts) middleware.RateLimiterConfig
NewRateLimit configures the options to limit the request based on env variables or the default values will be configured.
func NewRequestIdMiddleware ¶
func NewRequestIdMiddleware() echo.MiddlewareFunc
Types ¶
Click to show internal directories.
Click to hide internal directories.