Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultRetryCount = 3 // 默认的超时重试次数 DefaultGapTime = 3 * time.Second // 默认的超时时间间隔 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DelayRetryFunc ¶
type RetryOption ¶
type RetryOption struct { GapTime time.Duration // 重试间隔时间 RetryCount int // 重试次数 RetryFunc DelayRetryFunc // 重试函数 // contains filtered or unexported fields }
func NewRetryOption ¶
func NewRetryOption(ctx context.Context, gapTime time.Duration, retryCount int, func_ DelayRetryFunc) *RetryOption
Click to show internal directories.
Click to hide internal directories.