redislimit

package
v0.0.0-...-a112529 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisActiveLimit

type RedisActiveLimit struct {
	// contains filtered or unexported fields
}

func NewRedisActiveLimit

func NewRedisActiveLimit(cmd redis.Cmdable, maxActive int64, key string) *RedisActiveLimit

NewRedisActiveLimit 全局限流

func (*RedisActiveLimit) Build

func (a *RedisActiveLimit) Build() gin.HandlerFunc

func (*RedisActiveLimit) SetLogFunc

func (a *RedisActiveLimit) SetLogFunc(fun func(msg any, args ...any)) *RedisActiveLimit

Jump to

Keyboard shortcuts

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