Documentation
¶
Index ¶
- Constants
- func AuthMiddleware(authService *auth.Service, cookieName string) func(http.Handler) http.Handler
- func CorsMiddleware(allowedOrigins []string) func(http.Handler) http.Handler
- func EndpointHooksMiddleware(config *domain.Config, authService *auth.Service) func(http.Handler) http.Handler
- func OptionalAuthMiddleware(authService *auth.Service, cookieName string) func(http.Handler) http.Handler
Constants ¶
View Source
const ContextUserID ctxKey = "user_id"
Variables ¶
This section is empty.
Functions ¶
func AuthMiddleware ¶
func EndpointHooksMiddleware ¶ added in v1.0.3
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.