Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Limiter ¶
type Limiter struct {
// contains filtered or unexported fields
}
Limiter keeps track of an api rate limit and wont let you pass the limit
func (*Limiter) ResetAfter ¶ added in v1.1.0
ResetAfter will reset the bucket to 0, wait for the amount of time until it resumes This will allow the rate limiter to stop all activity and restart slowly
Click to show internal directories.
Click to hide internal directories.