mids

package
v0.0.0-...-0eef1dd Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByIpPath

func ByIpPath(ctx *gin.Context) string

func RateLimitByCount

func RateLimitByCount(client *redis.Client, limit int, window time.Duration, keyFn func(ctx *gin.Context) string) gin.HandlerFunc

RateLimitByCount limits the number of requests by counting for public api

func TokenAuthenticator

func TokenAuthenticator(tokenHandler *authhandler.TokenHandler) gin.HandlerFunc

TokenAuthenticator authenticates each request

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳