middlewares

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

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) 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.

Jump to

Keyboard shortcuts

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