Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Attempts int
InitialDelay time.Duration
MaxDelay time.Duration
Multiplier float64
RandomFactor float64
}
Config holds configuration for retry operations because sometimes you need more than just "try again and hope for the best"
func DefaultRetryConfig ¶
func DefaultRetryConfig() Config
DefaultRetryConfig returns a configuration that's probably better than whatever you were going to come up with
Click to show internal directories.
Click to hide internal directories.