middleware

package
v0.0.0-...-6ab7524 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const LoggerKey = logContextKey("logger")

Variables

View Source
var UserContextKey = contextKey(uuid.New())

Functions

func LoggerFromContext

func LoggerFromContext(ctx context.Context) *slog.Logger

func Logging

func Logging(next http.Handler) http.Handler

main middleware.

Types

type AuthMiddleware

type AuthMiddleware struct {
	// contains filtered or unexported fields
}

func NewAuthMiddleware

func NewAuthMiddleware(jwtKey []byte) *AuthMiddleware

func (*AuthMiddleware) Authenticate

func (m *AuthMiddleware) Authenticate(next http.Handler) http.HandlerFunc

Jump to

Keyboard shortcuts

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