Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLimiter ¶
NewLimiter returns throttler with rateLimit requests per minute. optionally caller may specify the boost
func SetMaxAllowedWaitTime ¶ added in v2.3.3
SetMaxAllowedWaitTime sets the maximum time to wait for a transient error.
Types ¶
type ErrRetryFailed ¶
type ErrRetryFailed struct {
Err error
}
ErrRetryFailed is returned if number of retry attempts exceeded the retry attempts limit and function wasn't able to complete without errors.
func (*ErrRetryFailed) Error ¶ added in v2.5.8
func (e *ErrRetryFailed) Error() string
func (*ErrRetryFailed) Is ¶ added in v2.5.8
func (e *ErrRetryFailed) Is(target error) bool
func (*ErrRetryFailed) Unwrap ¶ added in v2.5.8
func (e *ErrRetryFailed) Unwrap() error
Click to show internal directories.
Click to hide internal directories.