retry

package
v2.1.16+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2016 License: MIT Imports: 3 Imported by: 61

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

func Do(callback func(*Stats) error, config *Config) error

Types

type Config

type Config struct {
	Maximum  int
	Interval time.Duration
	Forever  bool
}

type Stats

type Stats struct {
	Attempt int
	Config  *Config
	// contains filtered or unexported fields
}

func (*Stats) Break

func (s *Stats) Break()

Allow a retry loop to break out of itself

func (*Stats) String

func (s *Stats) String() string

A human readable representation often useful for debugging.

Jump to

Keyboard shortcuts

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