retry

package
v5.20.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package retry handles retry operations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsRetryable

func IsRetryable(err error) bool

Types

type State

type State struct {
	Errs                    []error
	MaxTransactionRetryTime time.Duration
	Log                     log.Logger
	LogName                 string
	LogId                   string
	Sleep                   func(time.Duration)
	Throttle                Throttler
	MaxDeadConnections      int
	DatabaseName            string
	TelemetrySent           bool
	// contains filtered or unexported fields
}

func (*State) Continue

func (s *State) Continue() bool

func (*State) OnFailure

func (s *State) OnFailure(_ context.Context, err error, conn idb.Connection, isCommitting bool)

func (*State) ProduceError added in v5.8.0

func (s *State) ProduceError() error

type Throttler

type Throttler time.Duration

Jump to

Keyboard shortcuts

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