middleware

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

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 Logger

func Logger() gin.HandlerFunc

Logger returns a middleware that logs the request.

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.

Jump to

Keyboard shortcuts

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