package operation
import "github.com/ydb-platform/ydb-go-sdk/v3/internal/operation"
Index ¶
- func Params( ctx context.Context, timeout time.Duration, cancelAfter time.Duration, mode Mode, ) *Ydb_Operations.OperationParams
- func WithCancelAfter(ctx context.Context, operationCancelAfter time.Duration) context.Context
- func WithTimeout(ctx context.Context, operationTimeout time.Duration) context.Context
- type Mode
- type Status
Functions ¶
func Params ¶
func Params( ctx context.Context, timeout time.Duration, cancelAfter time.Duration, mode Mode, ) *Ydb_Operations.OperationParams
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.
func WithTimeout ¶
WithTimeout returns a copy of parent context in which YDB operation timeout parameter is set to d. If parent context timeout is smaller than d, parent context is returned.
Types ¶
type Mode ¶
type Mode uint
func (Mode) String ¶
type Status ¶
type Status interface { GetStatus() Ydb.StatusIds_StatusCode GetIssues() []*Ydb_Issue.IssueMessage }
Source Files ¶
context.go mode.go params.go status.go timeout.go
- Version
- v3.65.3
- Published
- Apr 18, 2024
- Platform
- linux/amd64
- Imports
- 6 packages
- Last checked
- 7 minutes ago –
Tools for package owners.