Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SpeedLimiter ¶
func NewRandSpeedLimiter ¶
func NewRandSpeedLimiter(minInterval, maxInterval time.Duration) SpeedLimiter
minInterval:最小等待时间 maxInterval:最大等待时间 maxInterval-minInterval: 等待范围
func NewSpeedLimiter ¶
func NewSpeedLimiter(interval time.Duration) SpeedLimiter
Click to show internal directories.
Click to hide internal directories.