retry

package
v0.0.0-...-84d53aa Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2019 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Retry

type Retry struct {
	// contains filtered or unexported fields
}

Retry is a structure that sets the retry count and interval.

func New

func New(t *testing.T, count int, interval time.Duration) *Retry

New creates new retry structure.

func (*Retry) Try

func (r *Retry) Try(fn func(t T))

Try tries the given function.

type T

type T interface {
	Errorf(format string, args ...interface{})
	FailNow()
}

T is an interface wrapper around *testing.T

Jump to

Keyboard shortcuts

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