retry

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2020 License: Apache-2.0 Imports: 2 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action func(attempt uint) error

Action ...

type Model

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

Model ...

func Times

func Times(retry uint) *Model

Times ...

func Wait

func Wait(waitTime time.Duration) *Model

Wait ...

func (*Model) Times

func (model *Model) Times(retry uint) *Model

Times ...

func (Model) Try

func (model Model) Try(action Action) error

Try ...

func (*Model) Wait

func (model *Model) Wait(waitTime time.Duration) *Model

Wait ...

Jump to

Keyboard shortcuts

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