errorpb

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: 5 Imported by: 0

Documentation

Overview

Package errorpb is a generated protocol buffer package.

It is generated from these files:

errorpb.proto

It has these top-level messages:

NotLeader
RegionNotFound
KeyNotInRegion
StaleEpoch
ServerIsBusy
Error

Index

Constants

This section is empty.

Variables

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

Functions

This section is empty.

Types

type Error

type Error struct {
	Message          *string         `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"`
	NotLeader        *NotLeader      `protobuf:"bytes,2,opt,name=not_leader" json:"not_leader,omitempty"`
	RegionNotFound   *RegionNotFound `protobuf:"bytes,3,opt,name=region_not_found" json:"region_not_found,omitempty"`
	KeyNotInRegion   *KeyNotInRegion `protobuf:"bytes,4,opt,name=key_not_in_region" json:"key_not_in_region,omitempty"`
	StaleEpoch       *StaleEpoch     `protobuf:"bytes,5,opt,name=stale_epoch" json:"stale_epoch,omitempty"`
	ServerIsBusy     *ServerIsBusy   `protobuf:"bytes,6,opt,name=server_is_busy" json:"server_is_busy,omitempty"`
	XXX_unrecognized []byte          `json:"-"`
}

func (*Error) Descriptor

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

func (*Error) GetKeyNotInRegion

func (m *Error) GetKeyNotInRegion() *KeyNotInRegion

func (*Error) GetMessage

func (m *Error) GetMessage() string

func (*Error) GetNotLeader

func (m *Error) GetNotLeader() *NotLeader

func (*Error) GetRegionNotFound

func (m *Error) GetRegionNotFound() *RegionNotFound

func (*Error) GetServerIsBusy

func (m *Error) GetServerIsBusy() *ServerIsBusy

func (*Error) GetStaleEpoch

func (m *Error) GetStaleEpoch() *StaleEpoch

func (*Error) Marshal

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

func (*Error) MarshalTo

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

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) Reset

func (m *Error) Reset()

func (*Error) Size

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

func (*Error) String

func (m *Error) String() string

func (*Error) Unmarshal

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

type KeyNotInRegion

type KeyNotInRegion struct {
	Key              []byte  `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"`
	RegionId         *uint64 `protobuf:"varint,2,opt,name=region_id" json:"region_id,omitempty"`
	StartKey         []byte  `protobuf:"bytes,3,opt,name=start_key" json:"start_key,omitempty"`
	EndKey           []byte  `protobuf:"bytes,4,opt,name=end_key" json:"end_key,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

func (*KeyNotInRegion) Descriptor

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

func (*KeyNotInRegion) GetEndKey

func (m *KeyNotInRegion) GetEndKey() []byte

func (*KeyNotInRegion) GetKey

func (m *KeyNotInRegion) GetKey() []byte

func (*KeyNotInRegion) GetRegionId

func (m *KeyNotInRegion) GetRegionId() uint64

func (*KeyNotInRegion) GetStartKey

func (m *KeyNotInRegion) GetStartKey() []byte

func (*KeyNotInRegion) Marshal

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

func (*KeyNotInRegion) MarshalTo

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

func (*KeyNotInRegion) ProtoMessage

func (*KeyNotInRegion) ProtoMessage()

func (*KeyNotInRegion) Reset

func (m *KeyNotInRegion) Reset()

func (*KeyNotInRegion) Size

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

func (*KeyNotInRegion) String

func (m *KeyNotInRegion) String() string

func (*KeyNotInRegion) Unmarshal

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

type NotLeader

type NotLeader struct {
	RegionId         *uint64      `protobuf:"varint,1,opt,name=region_id" json:"region_id,omitempty"`
	Leader           *metapb.Peer `protobuf:"bytes,2,opt,name=leader" json:"leader,omitempty"`
	XXX_unrecognized []byte       `json:"-"`
}

func (*NotLeader) Descriptor

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

func (*NotLeader) GetLeader

func (m *NotLeader) GetLeader() *metapb.Peer

func (*NotLeader) GetRegionId

func (m *NotLeader) GetRegionId() uint64

func (*NotLeader) Marshal

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

func (*NotLeader) MarshalTo

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

func (*NotLeader) ProtoMessage

func (*NotLeader) ProtoMessage()

func (*NotLeader) Reset

func (m *NotLeader) Reset()

func (*NotLeader) Size

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

func (*NotLeader) String

func (m *NotLeader) String() string

func (*NotLeader) Unmarshal

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

type RegionNotFound

type RegionNotFound struct {
	RegionId         *uint64 `protobuf:"varint,1,opt,name=region_id" json:"region_id,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

func (*RegionNotFound) Descriptor

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

func (*RegionNotFound) GetRegionId

func (m *RegionNotFound) GetRegionId() uint64

func (*RegionNotFound) Marshal

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

func (*RegionNotFound) MarshalTo

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

func (*RegionNotFound) ProtoMessage

func (*RegionNotFound) ProtoMessage()

func (*RegionNotFound) Reset

func (m *RegionNotFound) Reset()

func (*RegionNotFound) Size

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

func (*RegionNotFound) String

func (m *RegionNotFound) String() string

func (*RegionNotFound) Unmarshal

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

type ServerIsBusy

type ServerIsBusy struct {
	XXX_unrecognized []byte `json:"-"`
}

func (*ServerIsBusy) Descriptor

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

func (*ServerIsBusy) Marshal

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

func (*ServerIsBusy) MarshalTo

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

func (*ServerIsBusy) ProtoMessage

func (*ServerIsBusy) ProtoMessage()

func (*ServerIsBusy) Reset

func (m *ServerIsBusy) Reset()

func (*ServerIsBusy) Size

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

func (*ServerIsBusy) String

func (m *ServerIsBusy) String() string

func (*ServerIsBusy) Unmarshal

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

type StaleEpoch

type StaleEpoch struct {
	NewRegions       []*metapb.Region `protobuf:"bytes,1,rep,name=new_regions" json:"new_regions,omitempty"`
	XXX_unrecognized []byte           `json:"-"`
}

func (*StaleEpoch) Descriptor

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

func (*StaleEpoch) GetNewRegions

func (m *StaleEpoch) GetNewRegions() []*metapb.Region

func (*StaleEpoch) Marshal

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

func (*StaleEpoch) MarshalTo

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

func (*StaleEpoch) ProtoMessage

func (*StaleEpoch) ProtoMessage()

func (*StaleEpoch) Reset

func (m *StaleEpoch) Reset()

func (*StaleEpoch) Size

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

func (*StaleEpoch) String

func (m *StaleEpoch) String() string

func (*StaleEpoch) Unmarshal

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

Jump to

Keyboard shortcuts

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