middleware

package
v0.0.0-...-04b1328 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAdmin

func CheckAdmin(c *gin.Context)

func CheckAuth

func CheckAuth(c *gin.Context)

func GetRedisClient

func GetRedisClient() *redis.Client

func RateLimiterMiddleware

func RateLimiterMiddleware(mode string, redisClient *redis.Client) gin.HandlerFunc

func SetRedisClient

func SetRedisClient(client *redis.Client)

Types

type RateConfig

type RateConfig map[string]string

Jump to

Keyboard shortcuts

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