Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func DoWithRetry ¶
DoWithRetry executes function doFunc. If there is an error, it will retry with a backoff delay until max retry times reached or context done. If retryOpts.Retries == 0, it will execute doFunc just once without any retries. If retryOpts.Retries < 0, it retries an infinite number of times.
Types ¶
Click to show internal directories.
Click to hide internal directories.