limit

package
v0.0.0-...-701726f Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: EPL-1.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAccessRateLimit

func CheckAccessRateLimit(routeConf *models.RouteConf) (int, bool)

CheckAccessRateLimit 检查访问频率

func CheckOverloadLimit

func CheckOverloadLimit(routeConf *models.RouteConf) (int, bool)

CheckOverloadLimit 过载保护

func TotalIncr

func TotalIncr(routeConf *models.RouteConf, accessTotal int, overload int)

TotalIncr 访问、过载计数增加一次

Types

This section is empty.

Jump to

Keyboard shortcuts

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