Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RouteLimiter ¶
RouteLimiter 路由限流器
var (
App RouteLimiter
)
func (*RouteLimiter) Add ¶
func (r *RouteLimiter) Add(router string, t time.Duration, maxVisitTimes uint64) *RouteLimiter
Add 添加限流规则
Click to show internal directories.
Click to hide internal directories.