升级RateLimiter接口约束
This commit is contained in:
@ -7,7 +7,9 @@
|
||||
// Date : 2025-05-07 21:13
|
||||
package abstract
|
||||
|
||||
import "git.zhangdeman.cn/zhangdeman/network/httpclient/define"
|
||||
|
||||
// RateLimiter v2 流控口约束, v3移除了, 人工补齐
|
||||
type RateLimiter interface {
|
||||
Allow() bool
|
||||
Allow(reqCfg *define.Request) bool
|
||||
}
|
||||
|
Reference in New Issue
Block a user