Documentation
¶
Overview ¶
Package middleware provides a set of middleware for the Gin framework.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HealthCheck ¶
func HealthCheck(healthCheckPath string) gin.HandlerFunc
HealthCheck returns a middleware that checks the health of the server.
func RateLimiter ¶
func RateLimiter(limiter workqueue.RateLimiter[any]) gin.HandlerFunc
RateLimiter returns a middleware that limits the number of requests per second.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.