middleware

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2025 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CORSWithCredentials

func CORSWithCredentials(allowedOrigins []string) func(next http.Handler) http.Handler

CORSWithCredentials returns a CORS middleware that allows credentials

func HTTPLogger

func HTTPLogger(next http.Handler) http.Handler

HTTPLogger logs HTTP requests using the global zerolog logger

func IsAuthenticated

func IsAuthenticated(authService *auth.Service) func(http.Handler) http.Handler

IsAuthenticated middleware checks if the user is authenticated

func RequireSetup

func RequireSetup(authService *auth.Service) func(http.Handler) http.Handler

RequireSetup middleware ensures initial setup is complete

Types

This section is empty.

Jump to

Keyboard shortcuts

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