Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RetryIfNecessary ¶
func RetryIfNecessary(ctx context.Context, operation func() error, retryOptions *RetryOptions) error
RetryIfNecessary retries the operation in exponential backoff with the retryOptions
Types ¶
type RetryOptions ¶
type RetryOptions struct {
MaxRetry int // The number of times to possibly retry
}
RetryOptions defines the option to retry
Click to show internal directories.
Click to hide internal directories.