middleware

package
v0.0.0-...-3771ea2 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Middleware

type Middleware struct {
	DefaultLocale string
	Logger        *slog.Logger
	Keyfunc       jwt.Keyfunc
	DisableAuth   bool
	AdminGroup    string
}

func (Middleware) Locale

func (m Middleware) Locale(next http.Handler) http.Handler

func (Middleware) Logging

func (m Middleware) Logging(next http.Handler) http.Handler

func (Middleware) ValidateAdminJWT

func (m Middleware) ValidateAdminJWT(next http.Handler) http.Handler

func (Middleware) ValidateJWT

func (m Middleware) ValidateJWT(next http.Handler) http.Handler

type MyClaims

type MyClaims struct {
	jwt.RegisteredClaims
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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