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 Issues ¶
type Issues []Issue
type Operation ¶
type Operation struct { ID string Ready bool Status StatusCode Issues Issues }
func (*Operation) FromProtoWithStatusCheck ¶
func (o *Operation) FromProtoWithStatusCheck(proto *Ydb_Operations.Operation) error
func (*Operation) OperationStatusToError ¶
type OperationParams ¶
type OperationParams struct { OperationMode OperationParamsMode OperationTimeout rawoptional.Duration CancelAfter rawoptional.Duration }
func (*OperationParams) ToProto ¶
func (p *OperationParams) ToProto() *Ydb_Operations.OperationParams
type OperationParamsMode ¶
type OperationParamsMode int
const ( OperationParamsModeUnspecified OperationParamsMode = 0 OperationParamsModeSync OperationParamsMode = 1 OperationParamsModeAsync OperationParamsMode = 2 )
func (OperationParamsMode) ToProto ¶
func (mode OperationParamsMode) ToProto() Ydb_Operations.OperationParams_OperationMode
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
Click to show internal directories.
Click to hide internal directories.