Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IntervalRetrier ¶
type IntervalRetrier struct {
// contains filtered or unexported fields
}
IntervalRetrier retries a call with an interval. The call is defined in the Doer property.
func NewIntervalRetrier ¶
func NewIntervalRetrier(doer Doer, interval time.Duration, retriable func(error) bool, optClock ...clock.WithTicker) *IntervalRetrier
NewIntervalRetrier returns a new IntervalRetrier. The optional clock is used for testing.
Click to show internal directories.
Click to hide internal directories.