rpcretry

package
v0.17.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2018 License: MIT Imports: 4 Imported by: 4

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL