Versions in this module Expand all Collapse all v1 v1.0.1 Aug 23, 2026 v1.0.0 Aug 23, 2026 Changes in this version + func Attempt(ctx context.Context) (int, bool) + func Middleware(opts ...Option) source.Middleware + func WithAttempt(ctx context.Context, n int) context.Context + type Backoff interface + Delay func(attempt int) time.Duration + type BackoffFunc func(attempt int) time.Duration + func (f BackoffFunc) Delay(attempt int) time.Duration + type Option func(*config) + func WithBackoff(base, maxDelay time.Duration, factor float64, jitter bool) Option + func WithBackoffFunc(b Backoff) Option + func WithJitterSource(randF func() float64) Option + func WithMaxAttempts(n int) Option