middleware

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CSRFMiddleware = csrf.Protect(
	[]byte(config.Get().AuthCSRFProtectionSecretKey),
	csrf.Secure(config.Get().AuthCSRFSecureCookie),
	csrf.TrustedOrigins([]string{config.Get().AppHost}),
)

Functions

func CORSMiddleware

func CORSMiddleware(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