Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddApiKeyAuth ¶
func AddApiKeyAuth(app *echo.Echo)
Attach API key auth to the app header - 'XApiKey' - https://echo.labstack.com/docs/middleware/key-auth
func AddCompression ¶
func AddCompression(app *echo.Echo)
add compression: https://echo.labstack.com/docs/middleware/gzip
func AddCors ¶
func AddCors(app *echo.Echo)
Attach CORS to API https://echo.labstack.com/docs/middleware/cors
func Logger ¶
func Logger(app *echo.Echo)
Logger middleware logs the information about each HTTP request -https://echo.labstack.com/docs/middleware/logger
func RateLimiter ¶
func RateLimiter(app *echo.Echo)
Set a Rate limiter with a sliding window - https://echo.labstack.com/docs/middleware/rate-limiter
func Recover ¶
func Recover(app *echo.Echo)
Recover middleware recovers from panics anywhere in the chain, prints stack trace and handles the control to the centralized HTTPErrorHandler - https://echo.labstack.com/docs/middleware/recover
Types ¶
This section is empty.