limiter

package
v0.0.0-...-4b55cb2 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RateLimiterMiddleware

func RateLimiterMiddleware(c *RateLimiterConfig, skippers ...middleware.SkipperFunc) gin.HandlerFunc

RateLimiterMiddleware 请求频率限制中间件

Types

type RateLimiterConfig

type RateLimiterConfig struct {
	Type       string
	Address    string
	Password   string
	DB         int
	RateNumber int
}

Jump to

Keyboard shortcuts

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