middleware

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TraceIDKey = "trace_id"
	SubKey     = "sub"
	NameKey    = "name"
	EmailKey   = "email"
	PictureKey = "picture"
	RolesKey   = "roles"
)

Variables

This section is empty.

Functions

func NewMiddleware added in v0.1.1

func NewMiddleware(l logger.Logger) *middleware

Types

type Middleware

type Middleware interface {
	LogRequest(next http.Handler) http.Handler
	RecoverPanic(next http.Handler) http.Handler
	AddTraceID(next http.Handler) http.Handler
}

Jump to

Keyboard shortcuts

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