Mysqlx_Expect

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2018 License: Apache-2.0, Apache-2.0 Imports: 4 Imported by: 0

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

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) Descriptor() ([]byte, []int)

func (*Close) Marshal

func (m *Close) Marshal() (dAtA []byte, err error)

func (*Close) MarshalTo

func (m *Close) MarshalTo(dAtA []byte) (int, error)

func (*Close) ProtoMessage

func (*Close) ProtoMessage()

func (*Close) Reset

func (m *Close) Reset()

func (*Close) Size

func (m *Close) Size() (n int)

func (*Close) String

func (m *Close) String() string

func (*Close) Unmarshal

func (m *Close) Unmarshal(dAtA []byte) error

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) Descriptor() ([]byte, []int)

func (*Open) GetCond

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

func (*Open) GetOp

func (m *Open) GetOp() Open_CtxOperation

func (*Open) Marshal

func (m *Open) Marshal() (dAtA []byte, err error)

func (*Open) MarshalTo

func (m *Open) MarshalTo(dAtA []byte) (int, error)

func (*Open) ProtoMessage

func (*Open) ProtoMessage()

func (*Open) Reset

func (m *Open) Reset()

func (*Open) Size

func (m *Open) Size() (n int)

func (*Open) String

func (m *Open) String() string

func (*Open) Unmarshal

func (m *Open) Unmarshal(dAtA []byte) error

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 (*Open_Condition) Marshal

func (m *Open_Condition) Marshal() (dAtA []byte, err error)

func (*Open_Condition) MarshalTo

func (m *Open_Condition) MarshalTo(dAtA []byte) (int, 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
)

func (Open_Condition_ConditionOperation) Enum

func (Open_Condition_ConditionOperation) EnumDescriptor

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

func (Open_Condition_ConditionOperation) 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
)

func (Open_CtxOperation) Enum

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

Jump to

Keyboard shortcuts

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