rate

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// REDIS 用于存储 Redis 客户端实例
	REDIS *redis.Client
)

Functions

func Rate

func Rate(formatted string) gin.HandlerFunc

Rate 限流中间件(对每个client限流)

func Rate0

func Rate0(formatted string) gin.HandlerFunc

Rate0 限流中间件(总访问量限流)

Types

This section is empty.

Jump to

Keyboard shortcuts

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