Documentation ¶
Index ¶
- func Eval(ctx context.Context, limiter *redis_rate.Limiter, limit redis_rate.Limit, ...) bool
- func LimitUserByResource(limiter *redis_rate.Limiter, limit redis_rate.Limit) gin.HandlerFunc
- func LimitUserByResourceExt(limiter *redis_rate.Limiter, limit redis_rate.Limit) gin.HandlerFunc
- func SetResource(c *gin.Context, resource string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.