Documentation ¶
Overview ¶
Package Mysqlx_Expect is a generated protocol buffer package.
Expect operations ¶
It is generated from these files:
github.com/pingcap/tipb/go-mysqlx/Expect/mysqlx_expect.proto
It has these top-level messages:
Open Close
Index ¶
- Variables
- type Close
- func (*Close) Descriptor() ([]byte, []int)
- func (m *Close) Marshal() (dAtA []byte, err error)
- func (m *Close) MarshalTo(dAtA []byte) (int, error)
- func (*Close) ProtoMessage()
- func (m *Close) Reset()
- func (m *Close) Size() (n int)
- func (m *Close) String() string
- func (m *Close) Unmarshal(dAtA []byte) error
- type Open
- func (*Open) Descriptor() ([]byte, []int)
- func (m *Open) GetCond() []*Open_Condition
- func (m *Open) GetOp() Open_CtxOperation
- func (m *Open) Marshal() (dAtA []byte, err error)
- func (m *Open) MarshalTo(dAtA []byte) (int, error)
- func (*Open) ProtoMessage()
- func (m *Open) Reset()
- func (m *Open) Size() (n int)
- func (m *Open) String() string
- func (m *Open) Unmarshal(dAtA []byte) error
- type Open_Condition
- func (*Open_Condition) Descriptor() ([]byte, []int)
- func (m *Open_Condition) GetConditionKey() uint32
- func (m *Open_Condition) GetConditionValue() []byte
- func (m *Open_Condition) GetOp() Open_Condition_ConditionOperation
- func (m *Open_Condition) Marshal() (dAtA []byte, err error)
- func (m *Open_Condition) MarshalTo(dAtA []byte) (int, error)
- func (*Open_Condition) ProtoMessage()
- func (m *Open_Condition) Reset()
- func (m *Open_Condition) Size() (n int)
- func (m *Open_Condition) String() string
- func (m *Open_Condition) Unmarshal(dAtA []byte) error
- type Open_Condition_ConditionOperation
- type Open_CtxOperation
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthMysqlxExpect = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMysqlxExpect = fmt.Errorf("proto: integer overflow") )
View Source
var Open_Condition_ConditionOperation_name = map[int32]string{
0: "EXPECT_OP_SET",
1: "EXPECT_OP_UNSET",
}
View Source
var Open_Condition_ConditionOperation_value = map[string]int32{
"EXPECT_OP_SET": 0,
"EXPECT_OP_UNSET": 1,
}
View Source
var Open_CtxOperation_name = map[int32]string{
0: "EXPECT_CTX_COPY_PREV",
1: "EXPECT_CTX_EMPTY",
}
View Source
var Open_CtxOperation_value = map[string]int32{
"EXPECT_CTX_COPY_PREV": 0,
"EXPECT_CTX_EMPTY": 1,
}
Functions ¶
This section is empty.
Types ¶
type Close ¶
type Close struct {
XXX_unrecognized []byte `json:"-"`
}
close a Expect block
closing a Expect block restores the state of the previous Expect block for the following messages
:returns: :protobuf:msg:`Mysqlx::Ok` on success, :protobuf:msg:`Mysqlx::Error` on error
func (*Close) Descriptor ¶
func (*Close) ProtoMessage ¶
func (*Close) ProtoMessage()
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"` XXX_unrecognized []byte `json:"-"` }
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: :protobuf:msg:`Mysqlx::Ok` on success, :protobuf:msg:`Mysqlx::Error` on error
func (*Open) Descriptor ¶
func (*Open) GetCond ¶
func (m *Open) GetCond() []*Open_Condition
func (*Open) GetOp ¶
func (m *Open) GetOp() Open_CtxOperation
func (*Open) ProtoMessage ¶
func (*Open) ProtoMessage()
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"` XXX_unrecognized []byte `json:"-"` }
func (*Open_Condition) Descriptor ¶
func (*Open_Condition) Descriptor() ([]byte, []int)
func (*Open_Condition) GetConditionKey ¶
func (m *Open_Condition) GetConditionKey() uint32
func (*Open_Condition) GetConditionValue ¶
func (m *Open_Condition) GetConditionValue() []byte
func (*Open_Condition) GetOp ¶
func (m *Open_Condition) GetOp() Open_Condition_ConditionOperation
func (*Open_Condition) Marshal ¶
func (m *Open_Condition) Marshal() (dAtA []byte, err error)
func (*Open_Condition) ProtoMessage ¶
func (*Open_Condition) ProtoMessage()
func (*Open_Condition) Reset ¶
func (m *Open_Condition) Reset()
func (*Open_Condition) Size ¶
func (m *Open_Condition) Size() (n int)
func (*Open_Condition) String ¶
func (m *Open_Condition) String() string
func (*Open_Condition) Unmarshal ¶
func (m *Open_Condition) Unmarshal(dAtA []byte) error
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 )
const Default_Open_Condition_Op Open_Condition_ConditionOperation = Open_Condition_EXPECT_OP_SET
func (Open_Condition_ConditionOperation) Enum ¶
func (x Open_Condition_ConditionOperation) Enum() *Open_Condition_ConditionOperation
func (Open_Condition_ConditionOperation) EnumDescriptor ¶
func (Open_Condition_ConditionOperation) EnumDescriptor() ([]byte, []int)
func (Open_Condition_ConditionOperation) String ¶
func (x Open_Condition_ConditionOperation) String() string
func (*Open_Condition_ConditionOperation) UnmarshalJSON ¶
func (x *Open_Condition_ConditionOperation) UnmarshalJSON(data []byte) error
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 )
const Default_Open_Op Open_CtxOperation = Open_EXPECT_CTX_COPY_PREV
func (Open_CtxOperation) Enum ¶
func (x Open_CtxOperation) Enum() *Open_CtxOperation
func (Open_CtxOperation) EnumDescriptor ¶
func (Open_CtxOperation) EnumDescriptor() ([]byte, []int)
func (Open_CtxOperation) String ¶
func (x Open_CtxOperation) String() string
func (*Open_CtxOperation) UnmarshalJSON ¶
func (x *Open_CtxOperation) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.