ratelimiter

package
v1.1.3-3x6 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Eval

func Eval(ctx context.Context, limiter *redis_rate.Limiter, limit redis_rate.Limit, key string) bool

func LimitUserByResource

func LimitUserByResource(limiter *redis_rate.Limiter, limit redis_rate.Limit) gin.HandlerFunc

func LimitUserByResourceExt

func LimitUserByResourceExt(limiter *redis_rate.Limiter, limit redis_rate.Limit) gin.HandlerFunc

func SetResource

func SetResource(c *gin.Context, resource string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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