middleware

package
v1.24.1 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: MIT Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DebugSkipper

func DebugSkipper(_ echo.Context) bool

DebugSkipper is the skipper used in debug mode, we log everything.

func DefaultSkipper

func DefaultSkipper(c echo.Context) bool

DefaultSkipper is what we use as a default. Some endpoints are excluded from the logs to avoid flooding the logs and because they are not bringing a lot of value.

func WebsocketAuthorizer added in v1.12.0

func WebsocketAuthorizer(config *config.Config) echo.MiddlewareFunc

WebsocketAuthorizer is a middleware that checks in the params if we have the needed parameter for authorization

func ZapLogger

func ZapLogger(log *zap.Logger, config *config.Config) echo.MiddlewareFunc

ZapLogger is a middleware and zap to provide an "access log" like logging for each request.

Types

This section is empty.

Jump to

Keyboard shortcuts

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