Documentation ¶
Index ¶
- func CancelAfter(ctx context.Context) (d time.Duration, ok bool)
- func Params(ctx context.Context, timeout time.Duration, cancelAfter time.Duration, ...) *Ydb_Operations.OperationParams
- func Timeout(ctx context.Context) (d time.Duration, ok bool)
- func WithCancelAfter(ctx context.Context, operationCancelAfter time.Duration) context.Context
- func WithTimeout(ctx context.Context, operationTimeout time.Duration) context.Context
- type Mode
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CancelAfter ¶ added in v3.18.0
CancelAfter returns the timeout within given context after which YDB should try to cancel operation and return result regardless of the cancellation.
func Params ¶
func Params( ctx context.Context, timeout time.Duration, cancelAfter time.Duration, mode Mode, ) *Ydb_Operations.OperationParams
func Timeout ¶ added in v3.18.0
Timeout returns the timeout within given context after which YDB should try to cancel operation and return result regardless of the cancelation.
func WithCancelAfter ¶
WithCancelAfter returns a copy of parent context in which YDB operation cancel after parameter is set to d. If parent context cancellation timeout is smaller than d, parent context is returned.
Types ¶
type Status ¶ added in v3.21.0
type Status interface { GetStatus() Ydb.StatusIds_StatusCode GetIssues() []*Ydb_Issue.IssueMessage }
Click to show internal directories.
Click to hide internal directories.