Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*retryConfig)
func WithFixedDelay ¶
WithFixedDelay allows configuring a fixed-delay waiting strategy between retries
func WithIncrementDelay ¶
WithIncrementDelay allows configuring a waiting strategy with a custom base delay and increment
func WithMaxAttempts ¶
WithMaxAttempts allows configuring the maximum tries for a given function
type Retry ¶
type Retry struct {
// contains filtered or unexported fields
}
func (*Retry) SetNextRetry ¶
SetNextRetry allows configuring a custom duration only for the next retry calculated
Click to show internal directories.
Click to hide internal directories.