Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultRetryTimes times of retry DefaultRetryTimes = 5 // DefaultRetryDuration time duration of two retries DefaultRetryDuration = time.Second * 3 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*RetryConfig)
Option is for adding retry config
func RetryDuration ¶
RetryDuration set duration of retries.
type RetryConfig ¶
type RetryConfig struct {
// contains filtered or unexported fields
}
RetryConfig is config for retry
Click to show internal directories.
Click to hide internal directories.