Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CORS ¶
func CORS() gin.HandlerFunc
func GZIP ¶
func GZIP() gin.HandlerFunc
func HSTS ¶
func HSTS() gin.HandlerFunc
func JWTAuth ¶
func JWTAuth(authService *auth.AuthService, allowGuest bool) gin.HandlerFunc
JWTAuth creates a Gin middleware function that validates access tokens. It requires the AuthService to access token validation logic and configuration.
func Logger ¶
func Logger() gin.HandlerFunc
func RateLimiter ¶
func RateLimiter(formattedRate string) gin.HandlerFunc
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.