package config

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

Index

Functions

func SetAutoRetry

func SetAutoRetry(c *Common, autoRetry bool)

SetAutoRetry affects on AutoRetry() flag

func SetOperationCancelAfter

func SetOperationCancelAfter(c *Common, operationCancelAfter time.Duration)

SetOperationCancelAfter set the maximum amount of time a YDB server will process an operation. After timeout exceeds YDB will try to cancel operation and if it succeeds appropriate error will be returned to the client; otherwise processing will be continued.

If OperationCancelAfter is zero then no timeout is used.

func SetOperationTimeout

func SetOperationTimeout(c *Common, operationTimeout time.Duration)

SetOperationTimeout define the maximum amount of time a YDB server will process an operation. After timeout exceeds YDB will try to cancel operation and regardless of the cancellation appropriate error will be returned to the client.

If OperationTimeout is zero then no timeout is used.

func SetPanicCallback

func SetPanicCallback(c *Common, panicCallback func(e interface{}))

SetPanicCallback applies panic callback to config

func SetRetryBudget

func SetRetryBudget(c *Common, b budget.Budget)

func SetTraceRetry

func SetTraceRetry(c *Common, t *trace.Retry, opts ...trace.RetryComposeOption)

Types

type Common

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

func (*Common) AutoRetry

func (c *Common) AutoRetry() bool

AutoRetry defines auto-retry flag

func (*Common) OperationCancelAfter

func (c *Common) OperationCancelAfter() time.Duration

OperationCancelAfter is the maximum amount of time a YDB server will process an operation. After timeout exceeds YDB will try to cancel operation and if it succeeds appropriate error will be returned to the client; otherwise processing will be continued. If OperationCancelAfter is zero then no timeout is used.

func (*Common) OperationTimeout

func (c *Common) OperationTimeout() time.Duration

OperationTimeout is the maximum amount of time a YDB server will process an operation. After timeout exceeds YDB will try to cancel operation and regardless of the cancellation appropriate error will be returned to the client. If OperationTimeout is zero then no timeout is used.

func (*Common) PanicCallback

func (c *Common) PanicCallback() func(e interface{})

PanicCallback returns user-defined panic callback If nil - panic callback not defined

func (*Common) RetryBudget

func (c *Common) RetryBudget() budget.Budget

func (*Common) TraceRetry

func (c *Common) TraceRetry() *trace.Retry

Source Files

config.go

Version
v3.81.4
Published
Oct 2, 2024
Platform
js/wasm
Imports
3 packages
Last checked
4 minutes ago

Tools for package owners.