middleware

package
v1.0.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllowCORS

func AllowCORS(next http.Handler) http.Handler

AllowCORS is a middleware that sets the CORS headers

func LoggedOnly

func LoggedOnly(h http.Handler) http.Handler

func LoggingMiddleware

func LoggingMiddleware(next http.Handler) http.Handler

LoggingMiddleware injects the request ID into the context and logs the request details

func SetUserInContext

func SetUserInContext(next http.Handler, jwtDatasource domain.JwtDatasource) http.Handler

SetUserInContext is a middleware that sets the user in the context

Types

This section is empty.

Jump to

Keyboard shortcuts

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