Documentation
¶
Index ¶
- type Retry
- func (my *Retry) Do(attempts int) error
- func (*Retry) New() *Retry
- func (my *Retry) SetCtx(ctx context.Context) *Retry
- func (my *Retry) SetFn(fn func() error) *Retry
- func (my *Retry) SetSleep(sleep time.Duration) *Retry
- func (my *Retry) WithContext(attempts int) error
- func (my *Retry) WithContextAndJitter(attempts int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Retry ¶
type Retry struct {
// contains filtered or unexported fields
}
var (
RetryApp Retry
)
func (*Retry) WithContext ¶ added in v1.9.10
WithContext 带上下文的重试
func (*Retry) WithContextAndJitter ¶ added in v1.9.10
Click to show internal directories.
Click to hide internal directories.