Documentation ¶
Index ¶
- func SetAutoRetry(c *Common, autoRetry bool)
- func SetOperationCancelAfter(c *Common, operationCancelAfter time.Duration)
- func SetOperationTimeout(c *Common, operationTimeout time.Duration)
- func SetPanicCallback(c *Common, panicCallback func(e interface{}))
- func SetRetryBudget(c *Common, b budget.Budget)
- func SetTraceRetry(c *Common, t *trace.Retry, opts ...trace.RetryComposeOption)
- type Common
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetAutoRetry ¶ added in v3.24.0
SetAutoRetry affects on AutoRetry() flag
func SetOperationCancelAfter ¶
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 ¶
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 ¶ added in v3.66.0
func SetTraceRetry ¶ added in v3.54.0
func SetTraceRetry(c *Common, t *trace.Retry, opts ...trace.RetryComposeOption)
Types ¶
type Common ¶
type Common struct {
// contains filtered or unexported fields
}
func (*Common) OperationCancelAfter ¶
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 ¶
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