package
Version:
v0.0.0-...-7f5b3d9
Opens a new window with list of versions in this module.
Published: Nov 1, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func GetLimiter() *rcLimiter
GetLimiter 获取路由并发限制器
type RouterConcurrency struct {
Router string `json:"router"`
Max uint32 `json:"max"`
Rate int `json:"rate"`
Interval string `json:"interval"`
}
RouterConcurrency 路由并发配置
Take 执行一次频率限制,此执行会根据当时频率延时
Source Files
¶
Click to show internal directories.
Click to hide internal directories.