Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Executor ¶
type Executor struct {
// contains filtered or unexported fields
}
Executor handles the execution of operations with retries
func NewExecutor ¶
NewExecutor creates a new retry executor with the given policy
type Option ¶
type Option func(*Policy)
Option represents a retry policy option
func WithBackoffCoefficient ¶
WithBackoffCoefficient sets the backoff coefficient
func WithInitialInterval ¶
WithInitialInterval sets the initial interval for retries
func WithMaxAttempts ¶
WithMaxAttempts sets the maximum number of retry attempts
func WithMaximumInterval ¶
WithMaximumInterval sets the maximum interval between retries
Click to show internal directories.
Click to hide internal directories.