middleware

package
v0.0.0-...-d32cbad Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2024 License: MIT Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL