Versions in this module Expand all Collapse all v0 v0.0.2 Jan 22, 2021 v0.0.1 Jan 22, 2021 Changes in this version + const DefaultAttempts + const DefaultBackoffFactor + const DefaultInitialBackoff + const DefaultMaxBackoff + const ResMgmtDefaultAttempts + const ResMgmtDefaultBackoffFactor + const ResMgmtDefaultInitialBackoff + const ResMgmtDefaultMaxBackoff + const TestAttempts + const TestBackoffFactor + const TestInitialBackoff + const TestMaxBackoff + var ChannelClientRetryableCodes = map[status.Group][]status.Code + var ChannelConfigRetryableCodes = map[status.Group][]status.Code + var DefaultChannelOpts = Opts + var DefaultOpts = Opts + var DefaultResMgmtOpts = Opts + var DefaultRetryableCodes = map[status.Group][]status.Code + var ResMgmtDefaultRetryableCodes = map[status.Group][]status.Code + var TestRetryOpts = Opts + var TestRetryableCodes = map[status.Group][]status.Code + type BeforeRetryHandler func(error) + type Handler interface + Required func(err error) bool + func New(opts Opts) Handler + func WithAttempts(attempts int) Handler + func WithDefaults() Handler + type Invocation func() (interface{}, error) + type InvokerOpt func(invoker *RetryableInvoker) + func WithBeforeRetry(beforeRetry BeforeRetryHandler) InvokerOpt + type Opts struct + Attempts int + BackoffFactor float64 + InitialBackoff time.Duration + MaxBackoff time.Duration + RetryableCodes map[status.Group][]status.Code + type RetryableInvoker struct + func NewInvoker(handler Handler, opts ...InvokerOpt) *RetryableInvoker + func (ri *RetryableInvoker) Invoke(invocation Invocation) (interface{}, error)