with

package
v0.0.0-...-2be0f72 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const RetryForever = -1

RetryForever means we should retry requests forever. If requests shouldn't be retried forever then the upload.retryCount should be set to a positive number.

View Source
const RetryNever = 0

RetryNever never retries a request.

Variables

View Source
var ErrRetriesExceeded = errors.New("retries exceeded")

ErrRetriesExceeded max number of retries exceeded.

View Source
var ErrRetry = errors.New("retry call")

Functions

This section is empty.

Types

type Retrier

type Retrier struct {
	MinWait    int
	MaxWait    int
	RetryCount int
}

func NewRetrier

func NewRetrier() Retrier

func (Retrier) WithRetry

func (r Retrier) WithRetry(fn func() error) error

Jump to

Keyboard shortcuts

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