Documentation ¶
Index ¶
- func ContextCancelAfter(ctx context.Context) (d time.Duration, ok bool)
- func ContextTimeout(ctx context.Context) (d time.Duration, ok bool)
- func SetOperationParams(req interface{}, params Params)
- func WithCancelAfter(ctx context.Context, d time.Duration) context.Context
- func WithMode(ctx context.Context, m Mode) context.Context
- func WithTimeout(ctx context.Context, d time.Duration) context.Context
- type Mode
- type ModeInterface
- type Params
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextCancelAfter ¶
ContextCancelAfter returns the timeout within given deadline after which YDB should try to cancel operation and return result regardless of the cancelation.
func ContextTimeout ¶
ContextTimeout returns the timeout within given deadline after which YDB should try to cancel operation and return result regardless of the cancelation.
func SetOperationParams ¶
func SetOperationParams(req interface{}, params Params)
func WithCancelAfter ¶
WithCancelAfter returns a copy of parent deadline in which YDB operation cancel after parameter is set to d. If parent deadline cancelation timeout is smaller than d, parent deadline deadline is returned.
Types ¶
type Mode ¶
type Mode uint
func ContextMode ¶
ContextMode returns the mode of YDB operation within given deadline.
type ModeInterface ¶
type ModeInterface interface {
String() string
}
Click to show internal directories.
Click to hide internal directories.