retry

package
v0.0.0-...-abfb8b1 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2016 License: BSD-3-Clause Imports: 3 Imported by: 7

Documentation

Overview

Package retry provides a facility for retrying function invocations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Function

func Function(ctx *tool.Context, fn func() error, opts ...RetryOpt) error

Function retries the given function for the given number of attempts at the given interval.

Types

type AttemptsOpt

type AttemptsOpt int

type IntervalOpt

type IntervalOpt time.Duration

type RetryOpt

type RetryOpt interface {
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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