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

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

Source Files

config.go

Version
v3.47.2
Published
May 23, 2023
Platform
js/wasm
Imports
1 packages
Last checked
4 minutes ago

Tools for package owners.