Documentation ¶
Index ¶
- func ColorSchemeDetection(next echo.HandlerFunc) echo.HandlerFunc
- func ErrorHandler(next echo.HandlerFunc) echo.HandlerFunc
- func InitSessionMiddleware(a *server.App) echo.MiddlewareFunc
- func LanguageDetection(next echo.HandlerFunc) echo.HandlerFunc
- func RequireLogin(a *server.App) echo.MiddlewareFunc
- func RequireToken(a *server.App) echo.MiddlewareFunc
- func SecureRoutes(a *server.App) echo.MiddlewareFunc
- func SetCommonDataMiddleware(a *server.App) echo.MiddlewareFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ColorSchemeDetection ¶
func ColorSchemeDetection(next echo.HandlerFunc) echo.HandlerFunc
ColorSchemeDetection detects the current color scheme and sets it in the context based on the "Sec-CH-Prefers-Color-Scheme" header
func ErrorHandler ¶
func ErrorHandler(next echo.HandlerFunc) echo.HandlerFunc
func InitSessionMiddleware ¶
InitSessionMiddleware initializes the session middleware with secure options
func LanguageDetection ¶
func LanguageDetection(next echo.HandlerFunc) echo.HandlerFunc
LanguageDetectiondetects the current language and sets it in the context
func RequireLogin ¶
func RequireToken ¶
RequireToken is a middleware that checks for a valid token in the request
func SecureRoutes ¶
func SetCommonDataMiddleware ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.