Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RateLimiter ¶
type RateLimiter struct {
// contains filtered or unexported fields
}
func NewLimiter ¶
func NewLimiter(rate int) *RateLimiter
func (*RateLimiter) SetBurst ¶
func (self *RateLimiter) SetBurst(burst int) *RateLimiter
func (*RateLimiter) SetRate ¶
func (self *RateLimiter) SetRate(rate int) *RateLimiter
func (*RateLimiter) Start ¶
func (self *RateLimiter) Start() <-chan time.Time
func (*RateLimiter) Stop ¶
func (self *RateLimiter) Stop()
type RetryError ¶
type RetryError struct {
// contains filtered or unexported fields
}
func (*RetryError) Error ¶
func (e *RetryError) Error() string
func (*RetryError) Errors ¶
func (e *RetryError) Errors() string
Click to show internal directories.
Click to hide internal directories.