topic

package
v3.54.2 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultStartTimeout = time.Minute
)

Variables

View Source
var (
	PublicRetryDecisionDefault = PublicCheckRetryResult{/* contains filtered or unexported fields */}
	PublicRetryDecisionRetry   = PublicCheckRetryResult{/* contains filtered or unexported fields */}
	PublicRetryDecisionStop    = PublicCheckRetryResult{/* contains filtered or unexported fields */}
)

Functions

func CheckResetReconnectionCounters added in v3.42.0

func CheckResetReconnectionCounters(lastTry, now time.Time, connectionTimeout time.Duration) bool

func CheckRetryMode added in v3.42.0

func CheckRetryMode(err error, settings RetrySettings, retriesDuration time.Duration) (
	_ backoff.Backoff,
	isRetriable bool,
)

func OperationParamsFromConfig

func OperationParamsFromConfig(operationParams *rawydb.OperationParams, cfg *config.Common)

Types

type Config

type Config struct {
	config.Common
	Trace *trace.Topic
}

type PublicCheckErrorRetryArgs added in v3.42.0

type PublicCheckErrorRetryArgs struct {
	Error error
}

func NewCheckRetryArgs added in v3.42.0

func NewCheckRetryArgs(err error) PublicCheckErrorRetryArgs

type PublicCheckErrorRetryFunction added in v3.42.0

type PublicCheckErrorRetryFunction func(errInfo PublicCheckErrorRetryArgs) PublicCheckRetryResult

type PublicCheckRetryResult added in v3.42.0

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

type RetrySettings added in v3.42.0

type RetrySettings struct {
	StartTimeout time.Duration // Full retry timeout
	CheckError   PublicCheckErrorRetryFunction
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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