package retry

import "github.com/ydb-platform/ydb-go-sdk/v3/internal/retry"

Index

Functions

func Check

func Check(err error) (
	statusCode int64,
	operationStatus operation.Status,
	backoffType backoff.Type,
	deleteSession bool,
)

Check returns retry mode for err.

Types

type Mode

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

Mode reports whether operation is able retried and with which properties.

func NewMode

func NewMode(statusCode int64, operationStatus operation.Status, backoff backoff.Type, deleteSession bool) Mode

func (Mode) BackoffType

func (m Mode) BackoffType() backoff.Type

func (Mode) MustBackoff

func (m Mode) MustBackoff() bool

func (Mode) MustDeleteSession

func (m Mode) MustDeleteSession() bool

func (Mode) MustRetry

func (m Mode) MustRetry(isOperationIdempotent bool) bool

func (Mode) StatusCode

func (m Mode) StatusCode() int64

Source Files

check.go mode.go

Version
v3.32.0
Published
Aug 5, 2022
Platform
js/wasm
Imports
3 packages
Last checked
2 minutes ago

Tools for package owners.