Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Counter ¶
func NewCounter ¶
func NewCounter() *Counter
type CounterLimiter ¶
type CounterLimiter struct {
ratelimit.BaseRateLimiter
N int64
/*
If the traffic is too large, the limiter will request Redis frequently.
To avoid this situation, the frequency of accessing Redis will be limited.
*/
AntiDDoS bool
// contains filtered or unexported fields
}
type Option ¶
type Option func(*CounterLimiter)
Click to show internal directories.
Click to hide internal directories.