rawydb

package
v3.81.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusSuccess       = StatusCode(Ydb.StatusIds_SUCCESS)
	StatusInternalError = StatusCode(Ydb.StatusIds_INTERNAL_ERROR)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Issue

type Issue struct {
	Code    uint32
	Message string
	Issues  Issues
}

func (*Issue) FromProto

func (issue *Issue) FromProto(p *Ydb_Issue.IssueMessage) error

func (*Issue) String

func (issue *Issue) String() string

type Issues

type Issues []Issue

func (*Issues) FromProto

func (issuesPointer *Issues) FromProto(p []*Ydb_Issue.IssueMessage) error

func (*Issues) String

func (issuesPointer *Issues) String() string

type Operation

type Operation struct {
	ID     string
	Ready  bool
	Status StatusCode
	Issues Issues
}

func (*Operation) FromProto

func (o *Operation) FromProto(proto *Ydb_Operations.Operation) error

func (*Operation) FromProtoWithStatusCheck

func (o *Operation) FromProtoWithStatusCheck(proto *Ydb_Operations.Operation) error

func (*Operation) OperationStatusToError

func (o *Operation) OperationStatusToError() error

type OperationParams

type OperationParams struct {
	OperationMode OperationParamsMode

	OperationTimeout rawoptional.Duration
	CancelAfter      rawoptional.Duration
}

func NewRawOperationParamsFromProto added in v3.76.4

func NewRawOperationParamsFromProto(proto *Ydb_Operations.OperationParams) (res OperationParams)

func (*OperationParams) ToProto

type OperationParamsMode

type OperationParamsMode int
const (
	OperationParamsModeUnspecified OperationParamsMode = 0
	OperationParamsModeSync        OperationParamsMode = 1
	OperationParamsModeAsync       OperationParamsMode = 2
)

func (OperationParamsMode) ToProto

type StatusCode

type StatusCode int

func (*StatusCode) FromProto

func (s *StatusCode) FromProto(p Ydb.StatusIds_StatusCode) error

func (StatusCode) IsSuccess

func (s StatusCode) IsSuccess() bool

func (StatusCode) String

func (s StatusCode) String() string

Jump to

Keyboard shortcuts

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