backoff

package
v0.0.0-...-4b0e997 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package backoff is a wrapper around cenkalti/backoff, adding OTel.

Index

Constants

This section is empty.

Variables

View Source
var (

	// Permanent wraps an error, indicating to the underlying library that the
	// request should not be retried and the underlying error should be
	// returned.
	Permanent = backoff.Permanent
)

Functions

func Backoff

func Backoff(ctx context.Context, op func(context.Context) error) error

Backoff retries the provided operation with an exponential back-off until the context deadline is reached.

Types

This section is empty.

Jump to

Keyboard shortcuts

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