retry

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorCheckerMakeConnectionCommon

func ErrorCheckerMakeConnectionCommon(err error) bool

func ErrorCheckerNoop

func ErrorCheckerNoop(_ error) bool

Types

type ErrorChecker

type ErrorChecker func(err error) bool

type Operation

type Operation func() error

type Retrier

type Retrier interface {
	Run(ctx context.Context, logger *zap.Logger, op Operation) error
}

func NewRetrierFromConfig

func NewRetrierFromConfig(cfg *config.TExponentialBackoffConfig, retriableErrorChecker ErrorChecker) Retrier

func NewRetrierNoop

func NewRetrierNoop() Retrier

type RetrierSet

type RetrierSet struct {
	MakeConnection Retrier
	Query          Retrier
}

func NewRetrierSetNoop

func NewRetrierSetNoop() *RetrierSet

Jump to

Keyboard shortcuts

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