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