config

package
v3.42.2 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetAutoRetry added in v3.24.0

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 added in v3.24.0

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

Jump to

Keyboard shortcuts

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