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
Click to show internal directories.
Click to hide internal directories.