retry

package
v3.0.0-...-e8b7a4c Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

func Do(ctx context.Context, retryAfter time.Duration, fn func() error) error

Do retries running function until it returns non-retryable error

func Retryable

func Retryable(err error) error

Retryable returns retryable error

Types

type RetryableError

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

RetryableError represents retryable error

func (RetryableError) Error

func (e RetryableError) Error() string

Error returns string representation of error

func (RetryableError) Unwrap

func (e RetryableError) Unwrap() error

Unwrap returns next error

Jump to

Keyboard shortcuts

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