Documentation
¶
Index ¶
- func New(opts ...RetryOption) datastore.Middleware
- type RetryOption
- func WithLogf(logf func(ctx context.Context, format string, args ...interface{})) RetryOption
- func WithMaxBackoffDuration(d time.Duration) RetryOption
- func WithMaxDoublings(maxDoublings int) RetryOption
- func WithMinBackoffDuration(d time.Duration) RetryOption
- func WithRetryLimit(limit int) RetryOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(opts ...RetryOption) datastore.Middleware
Types ¶
type RetryOption ¶
type RetryOption interface {
Apply(*retryHandler)
}
func WithLogf ¶
func WithLogf(logf func(ctx context.Context, format string, args ...interface{})) RetryOption
func WithMaxBackoffDuration ¶
func WithMaxBackoffDuration(d time.Duration) RetryOption
func WithMaxDoublings ¶
func WithMaxDoublings(maxDoublings int) RetryOption
func WithMinBackoffDuration ¶
func WithMinBackoffDuration(d time.Duration) RetryOption
func WithRetryLimit ¶
func WithRetryLimit(limit int) RetryOption
Click to show internal directories.
Click to hide internal directories.