utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAttemptsExceeded = errors.New("attempts exceeded")

ErrAttemptsExceeded represents attempts exceeded error

Functions

func Try

func Try(ctx context.Context, maxAttempts int, attemptInterval time.Duration, fn func() error) error

Try tries to run {fn} {maxAttempts} times with {attemptInterval} between attempts

Types

type Writer

type Writer interface {
	io.Writer
	io.ByteWriter
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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