coprocessor

package
v0.0.0-...-3056823 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package coprocessor is a generated protocol buffer package.

It is generated from these files:

coprocessor.proto

It has these top-level messages:

KeyRange
Request
Response

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthCoprocessor = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowCoprocessor   = fmt.Errorf("proto: integer overflow")
)

Functions

This section is empty.

Types

type KeyRange

type KeyRange struct {
	Start            []byte `protobuf:"bytes,1,opt,name=start" json:"start,omitempty"`
	End              []byte `protobuf:"bytes,2,opt,name=end" json:"end,omitempty"`
	XXX_unrecognized []byte `json:"-"`
}

[start, end)

func (*KeyRange) Descriptor

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

func (*KeyRange) GetEnd

func (m *KeyRange) GetEnd() []byte

func (*KeyRange) GetStart

func (m *KeyRange) GetStart() []byte

func (*KeyRange) Marshal

func (m *KeyRange) Marshal() (data []byte, err error)

func (*KeyRange) MarshalTo

func (m *KeyRange) MarshalTo(data []byte) (int, error)

func (*KeyRange) ProtoMessage

func (*KeyRange) ProtoMessage()

func (*KeyRange) Reset

func (m *KeyRange) Reset()

func (*KeyRange) Size

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

func (*KeyRange) String

func (m *KeyRange) String() string

func (*KeyRange) Unmarshal

func (m *KeyRange) Unmarshal(data []byte) error

type Request

type Request struct {
	Context          *kvrpcpb.Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"`
	Tp               int64            `protobuf:"varint,2,opt,name=tp" json:"tp"`
	Data             []byte           `protobuf:"bytes,3,opt,name=data" json:"data,omitempty"`
	Ranges           []*KeyRange      `protobuf:"bytes,4,rep,name=ranges" json:"ranges,omitempty"`
	XXX_unrecognized []byte           `json:"-"`
}

func (*Request) Descriptor

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

func (*Request) GetContext

func (m *Request) GetContext() *kvrpcpb.Context

func (*Request) GetData

func (m *Request) GetData() []byte

func (*Request) GetRanges

func (m *Request) GetRanges() []*KeyRange

func (*Request) GetTp

func (m *Request) GetTp() int64

func (*Request) Marshal

func (m *Request) Marshal() (data []byte, err error)

func (*Request) MarshalTo

func (m *Request) MarshalTo(data []byte) (int, error)

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) Reset

func (m *Request) Reset()

func (*Request) Size

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

func (*Request) String

func (m *Request) String() string

func (*Request) Unmarshal

func (m *Request) Unmarshal(data []byte) error

type Response

type Response struct {
	Data             []byte            `protobuf:"bytes,1,opt,name=data" json:"data,omitempty"`
	RegionError      *errorpb.Error    `protobuf:"bytes,2,opt,name=region_error" json:"region_error,omitempty"`
	Locked           *kvrpcpb.LockInfo `protobuf:"bytes,3,opt,name=locked" json:"locked,omitempty"`
	OtherError       string            `protobuf:"bytes,4,opt,name=other_error" json:"other_error"`
	XXX_unrecognized []byte            `json:"-"`
}

func (*Response) Descriptor

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

func (*Response) GetData

func (m *Response) GetData() []byte

func (*Response) GetLocked

func (m *Response) GetLocked() *kvrpcpb.LockInfo

func (*Response) GetOtherError

func (m *Response) GetOtherError() string

func (*Response) GetRegionError

func (m *Response) GetRegionError() *errorpb.Error

func (*Response) Marshal

func (m *Response) Marshal() (data []byte, err error)

func (*Response) MarshalTo

func (m *Response) MarshalTo(data []byte) (int, error)

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) Reset

func (m *Response) Reset()

func (*Response) Size

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

func (*Response) String

func (m *Response) String() string

func (*Response) Unmarshal

func (m *Response) Unmarshal(data []byte) error

Jump to

Keyboard shortcuts

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