middleware

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2026 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const LoggerKey = "logger"
View Source
const (
	UserContextKey = "user_id"
)

Variables

This section is empty.

Functions

func AuthMiddleware

func AuthMiddleware(jwtManager *utils.JWTManager) echo.MiddlewareFunc

func RequestLogger

func RequestLogger() echo.MiddlewareFunc

RequestLogger returns a middleware that logs each request with zerolog. It also stores a request-scoped logger in the context under LoggerKey, so handlers can retrieve it via c.Get(middleware.LoggerKey).(zerolog.Logger).

Types

This section is empty.

Jump to

Keyboard shortcuts

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