middleware

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdminAuthMiddleware added in v1.0.0

func AdminAuthMiddleware(next http.Handler) http.Handler

AdminAuthMiddleware verifies that the request has a valid JWT token with an admin role. Used to protect admin-only endpoints.

func AuthAudienceMiddleware added in v1.0.0

func AuthAudienceMiddleware(next http.Handler) http.Handler

AuthAudienceMiddleware checks that the JWT token has the correct audience (aud claim)

func CORSMiddleware

func CORSMiddleware(next http.Handler) http.Handler

func CSRFMiddleware

func CSRFMiddleware(next http.Handler) http.Handler

func CombineMiddlewares

func CombineMiddlewares(middlewares []func(http.Handler) http.Handler) func(http.Handler) http.Handler

func LoggingMiddleware

func LoggingMiddleware(next http.Handler) http.Handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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