Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RateLimiter ¶
type RateLimiter struct {
// contains filtered or unexported fields
}
func NewRateLimiter ¶
func NewRateLimiter(limit int, interval time.Duration) *RateLimiter
func (*RateLimiter) Wait ¶
func (rl *RateLimiter) Wait()
Click to show internal directories.
Click to hide internal directories.