mysqlxexpect

package
v0.9.8 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Default_Open_Condition_Op = Open_Condition_EXPECT_OP_SET
)

Default values for Open_Condition fields.

View Source
const (
	Default_Open_Op = Open_EXPECT_CTX_COPY_PREV
)

Default values for Open fields.

Variables

View Source
var (
	Open_CtxOperation_name = map[int32]string{
		0: "EXPECT_CTX_COPY_PREV",
		1: "EXPECT_CTX_EMPTY",
	}
	Open_CtxOperation_value = map[string]int32{
		"EXPECT_CTX_COPY_PREV": 0,
		"EXPECT_CTX_EMPTY":     1,
	}
)

Enum value maps for Open_CtxOperation.

View Source
var (
	Open_Condition_Key_name = map[int32]string{
		1: "EXPECT_NO_ERROR",
		2: "EXPECT_FIELD_EXIST",
		3: "EXPECT_DOCID_GENERATED",
	}
	Open_Condition_Key_value = map[string]int32{
		"EXPECT_NO_ERROR":        1,
		"EXPECT_FIELD_EXIST":     2,
		"EXPECT_DOCID_GENERATED": 3,
	}
)

Enum value maps for Open_Condition_Key.

View Source
var (
	Open_Condition_ConditionOperation_name = map[int32]string{
		0: "EXPECT_OP_SET",
		1: "EXPECT_OP_UNSET",
	}
	Open_Condition_ConditionOperation_value = map[string]int32{
		"EXPECT_OP_SET":   0,
		"EXPECT_OP_UNSET": 1,
	}
)

Enum value maps for Open_Condition_ConditionOperation.

View Source
var File_mysqlx_expect_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Close

type Close struct {
	// contains filtered or unexported fields
}

* Close a Expect block.

Closing a Expect block restores the state of the previous Expect block for the following messages.

@returns @ref Mysqlx::Ok on success, @ref Mysqlx::Error on error

func (*Close) Descriptor deprecated

func (*Close) Descriptor() ([]byte, []int)

Deprecated: Use Close.ProtoReflect.Descriptor instead.

func (*Close) ProtoMessage

func (*Close) ProtoMessage()

func (*Close) ProtoReflect

func (x *Close) ProtoReflect() protoreflect.Message

func (*Close) Reset

func (x *Close) Reset()

func (*Close) String

func (x *Close) String() string

type Open

type Open struct {
	Op   *Open_CtxOperation `protobuf:"varint,1,opt,name=op,enum=Mysqlx.Expect.Open_CtxOperation,def=0" json:"op,omitempty"`
	Cond []*Open_Condition  `protobuf:"bytes,2,rep,name=cond" json:"cond,omitempty"`
	// contains filtered or unexported fields
}

* Open an Expect block and set/unset the conditions that have to be fulfilled.

If any of the conditions fail, all enclosed messages will fail with a “Mysqlx::Error“ message.

@returns @ref Mysqlx::Ok on success, @ref Mysqlx::Error on error

func (*Open) Descriptor deprecated

func (*Open) Descriptor() ([]byte, []int)

Deprecated: Use Open.ProtoReflect.Descriptor instead.

func (*Open) GetCond

func (x *Open) GetCond() []*Open_Condition

func (*Open) GetOp

func (x *Open) GetOp() Open_CtxOperation

func (*Open) ProtoMessage

func (*Open) ProtoMessage()

func (*Open) ProtoReflect

func (x *Open) ProtoReflect() protoreflect.Message

func (*Open) Reset

func (x *Open) Reset()

func (*Open) String

func (x *Open) String() string

type Open_Condition

type Open_Condition struct {
	ConditionKey   *uint32                            `protobuf:"varint,1,req,name=condition_key,json=conditionKey" json:"condition_key,omitempty"`
	ConditionValue []byte                             `protobuf:"bytes,2,opt,name=condition_value,json=conditionValue" json:"condition_value,omitempty"`
	Op             *Open_Condition_ConditionOperation `protobuf:"varint,3,opt,name=op,enum=Mysqlx.Expect.Open_Condition_ConditionOperation,def=0" json:"op,omitempty"`
	// contains filtered or unexported fields
}

func (*Open_Condition) Descriptor deprecated

func (*Open_Condition) Descriptor() ([]byte, []int)

Deprecated: Use Open_Condition.ProtoReflect.Descriptor instead.

func (*Open_Condition) GetConditionKey

func (x *Open_Condition) GetConditionKey() uint32

func (*Open_Condition) GetConditionValue

func (x *Open_Condition) GetConditionValue() []byte

func (*Open_Condition) GetOp

func (*Open_Condition) ProtoMessage

func (*Open_Condition) ProtoMessage()

func (*Open_Condition) ProtoReflect

func (x *Open_Condition) ProtoReflect() protoreflect.Message

func (*Open_Condition) Reset

func (x *Open_Condition) Reset()

func (*Open_Condition) String

func (x *Open_Condition) String() string

type Open_Condition_ConditionOperation

type Open_Condition_ConditionOperation int32
const (
	// * set the condition; set, if not set; overwrite, if set
	Open_Condition_EXPECT_OP_SET Open_Condition_ConditionOperation = 0
	// * unset the condition
	Open_Condition_EXPECT_OP_UNSET Open_Condition_ConditionOperation = 1
)

func (Open_Condition_ConditionOperation) Descriptor

func (Open_Condition_ConditionOperation) Enum

func (Open_Condition_ConditionOperation) EnumDescriptor deprecated

func (Open_Condition_ConditionOperation) EnumDescriptor() ([]byte, []int)

Deprecated: Use Open_Condition_ConditionOperation.Descriptor instead.

func (Open_Condition_ConditionOperation) Number

func (Open_Condition_ConditionOperation) String

func (Open_Condition_ConditionOperation) Type

func (*Open_Condition_ConditionOperation) UnmarshalJSON deprecated

func (x *Open_Condition_ConditionOperation) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type Open_Condition_Key

type Open_Condition_Key int32
const (
	// * Change error propagation behaviour
	Open_Condition_EXPECT_NO_ERROR Open_Condition_Key = 1
	// * Check if X Protocol field exists
	Open_Condition_EXPECT_FIELD_EXIST Open_Condition_Key = 2
	// * Check if X Protocol supports document _id generation
	Open_Condition_EXPECT_DOCID_GENERATED Open_Condition_Key = 3
)

func (Open_Condition_Key) Descriptor

func (Open_Condition_Key) Enum

func (Open_Condition_Key) EnumDescriptor deprecated

func (Open_Condition_Key) EnumDescriptor() ([]byte, []int)

Deprecated: Use Open_Condition_Key.Descriptor instead.

func (Open_Condition_Key) Number

func (Open_Condition_Key) String

func (x Open_Condition_Key) String() string

func (Open_Condition_Key) Type

func (*Open_Condition_Key) UnmarshalJSON deprecated

func (x *Open_Condition_Key) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type Open_CtxOperation

type Open_CtxOperation int32
const (
	// * copy the operations from the parent Expect-block
	Open_EXPECT_CTX_COPY_PREV Open_CtxOperation = 0
	// * start with a empty set of operations
	Open_EXPECT_CTX_EMPTY Open_CtxOperation = 1
)

func (Open_CtxOperation) Descriptor

func (Open_CtxOperation) Enum

func (Open_CtxOperation) EnumDescriptor deprecated

func (Open_CtxOperation) EnumDescriptor() ([]byte, []int)

Deprecated: Use Open_CtxOperation.Descriptor instead.

func (Open_CtxOperation) Number

func (Open_CtxOperation) String

func (x Open_CtxOperation) String() string

func (Open_CtxOperation) Type

func (*Open_CtxOperation) UnmarshalJSON deprecated

func (x *Open_CtxOperation) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

Jump to

Keyboard shortcuts

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