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 StoreNotMatch RegionNotFound KeyNotInRegion StaleEpoch ServerIsBusy StaleCommand RaftEntryTooLarge Error
Index ¶
- Variables
- type Error
- func (*Error) Descriptor() ([]byte, []int)
- func (m *Error) GetKeyNotInRegion() *KeyNotInRegion
- func (m *Error) GetMessage() string
- func (m *Error) GetNotLeader() *NotLeader
- func (m *Error) GetRaftEntryTooLarge() *RaftEntryTooLarge
- func (m *Error) GetRegionNotFound() *RegionNotFound
- func (m *Error) GetServerIsBusy() *ServerIsBusy
- func (m *Error) GetStaleCommand() *StaleCommand
- func (m *Error) GetStaleEpoch() *StaleEpoch
- func (m *Error) GetStoreNotMatch() *StoreNotMatch
- func (m *Error) Marshal() (dAtA []byte, err error)
- func (m *Error) MarshalTo(dAtA []byte) (int, error)
- func (*Error) ProtoMessage()
- func (m *Error) Reset()
- func (m *Error) Size() (n int)
- func (m *Error) String() string
- func (m *Error) Unmarshal(dAtA []byte) error
- type KeyNotInRegion
- func (*KeyNotInRegion) Descriptor() ([]byte, []int)
- func (m *KeyNotInRegion) GetEndKey() []byte
- func (m *KeyNotInRegion) GetKey() []byte
- func (m *KeyNotInRegion) GetRegionId() uint64
- func (m *KeyNotInRegion) GetStartKey() []byte
- func (m *KeyNotInRegion) Marshal() (dAtA []byte, err error)
- func (m *KeyNotInRegion) MarshalTo(dAtA []byte) (int, error)
- func (*KeyNotInRegion) ProtoMessage()
- func (m *KeyNotInRegion) Reset()
- func (m *KeyNotInRegion) Size() (n int)
- func (m *KeyNotInRegion) String() string
- func (m *KeyNotInRegion) Unmarshal(dAtA []byte) error
- type NotLeader
- func (*NotLeader) Descriptor() ([]byte, []int)
- func (m *NotLeader) GetLeader() *metapb.Peer
- func (m *NotLeader) GetRegionId() uint64
- func (m *NotLeader) Marshal() (dAtA []byte, err error)
- func (m *NotLeader) MarshalTo(dAtA []byte) (int, error)
- func (*NotLeader) ProtoMessage()
- func (m *NotLeader) Reset()
- func (m *NotLeader) Size() (n int)
- func (m *NotLeader) String() string
- func (m *NotLeader) Unmarshal(dAtA []byte) error
- type RaftEntryTooLarge
- func (*RaftEntryTooLarge) Descriptor() ([]byte, []int)
- func (m *RaftEntryTooLarge) GetEntrySize() uint64
- func (m *RaftEntryTooLarge) GetRegionId() uint64
- func (m *RaftEntryTooLarge) Marshal() (dAtA []byte, err error)
- func (m *RaftEntryTooLarge) MarshalTo(dAtA []byte) (int, error)
- func (*RaftEntryTooLarge) ProtoMessage()
- func (m *RaftEntryTooLarge) Reset()
- func (m *RaftEntryTooLarge) Size() (n int)
- func (m *RaftEntryTooLarge) String() string
- func (m *RaftEntryTooLarge) Unmarshal(dAtA []byte) error
- type RegionNotFound
- func (*RegionNotFound) Descriptor() ([]byte, []int)
- func (m *RegionNotFound) GetRegionId() uint64
- func (m *RegionNotFound) Marshal() (dAtA []byte, err error)
- func (m *RegionNotFound) MarshalTo(dAtA []byte) (int, error)
- func (*RegionNotFound) ProtoMessage()
- func (m *RegionNotFound) Reset()
- func (m *RegionNotFound) Size() (n int)
- func (m *RegionNotFound) String() string
- func (m *RegionNotFound) Unmarshal(dAtA []byte) error
- type ServerIsBusy
- func (*ServerIsBusy) Descriptor() ([]byte, []int)
- func (m *ServerIsBusy) GetReason() string
- func (m *ServerIsBusy) Marshal() (dAtA []byte, err error)
- func (m *ServerIsBusy) MarshalTo(dAtA []byte) (int, error)
- func (*ServerIsBusy) ProtoMessage()
- func (m *ServerIsBusy) Reset()
- func (m *ServerIsBusy) Size() (n int)
- func (m *ServerIsBusy) String() string
- func (m *ServerIsBusy) Unmarshal(dAtA []byte) error
- type StaleCommand
- func (*StaleCommand) Descriptor() ([]byte, []int)
- func (m *StaleCommand) Marshal() (dAtA []byte, err error)
- func (m *StaleCommand) MarshalTo(dAtA []byte) (int, error)
- func (*StaleCommand) ProtoMessage()
- func (m *StaleCommand) Reset()
- func (m *StaleCommand) Size() (n int)
- func (m *StaleCommand) String() string
- func (m *StaleCommand) Unmarshal(dAtA []byte) error
- type StaleEpoch
- func (*StaleEpoch) Descriptor() ([]byte, []int)
- func (m *StaleEpoch) GetNewRegions() []*metapb.Region
- func (m *StaleEpoch) Marshal() (dAtA []byte, err error)
- func (m *StaleEpoch) MarshalTo(dAtA []byte) (int, error)
- func (*StaleEpoch) ProtoMessage()
- func (m *StaleEpoch) Reset()
- func (m *StaleEpoch) Size() (n int)
- func (m *StaleEpoch) String() string
- func (m *StaleEpoch) Unmarshal(dAtA []byte) error
- type StoreNotMatch
- func (*StoreNotMatch) Descriptor() ([]byte, []int)
- func (m *StoreNotMatch) Marshal() (dAtA []byte, err error)
- func (m *StoreNotMatch) MarshalTo(dAtA []byte) (int, error)
- func (*StoreNotMatch) ProtoMessage()
- func (m *StoreNotMatch) Reset()
- func (m *StoreNotMatch) Size() (n int)
- func (m *StoreNotMatch) String() string
- func (m *StoreNotMatch) Unmarshal(dAtA []byte) error
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=notLeader" json:"not_leader,omitempty"` RegionNotFound *RegionNotFound `protobuf:"bytes,3,opt,name=region_not_found,json=regionNotFound" json:"region_not_found,omitempty"` KeyNotInRegion *KeyNotInRegion `protobuf:"bytes,4,opt,name=key_not_in_region,json=keyNotInRegion" json:"key_not_in_region,omitempty"` StaleEpoch *StaleEpoch `protobuf:"bytes,5,opt,name=stale_epoch,json=staleEpoch" json:"stale_epoch,omitempty"` ServerIsBusy *ServerIsBusy `protobuf:"bytes,6,opt,name=server_is_busy,json=serverIsBusy" json:"server_is_busy,omitempty"` StaleCommand *StaleCommand `protobuf:"bytes,7,opt,name=stale_command,json=staleCommand" json:"stale_command,omitempty"` StoreNotMatch *StoreNotMatch `protobuf:"bytes,8,opt,name=store_not_match,json=storeNotMatch" json:"store_not_match,omitempty"` RaftEntryTooLarge *RaftEntryTooLarge `protobuf:"bytes,9,opt,name=raft_entry_too_large,json=raftEntryTooLarge" json:"raft_entry_too_large,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*Error) Descriptor ¶
func (*Error) GetKeyNotInRegion ¶
func (m *Error) GetKeyNotInRegion() *KeyNotInRegion
func (*Error) GetMessage ¶
func (*Error) GetNotLeader ¶
func (*Error) GetRaftEntryTooLarge ¶
func (m *Error) GetRaftEntryTooLarge() *RaftEntryTooLarge
func (*Error) GetRegionNotFound ¶
func (m *Error) GetRegionNotFound() *RegionNotFound
func (*Error) GetServerIsBusy ¶
func (m *Error) GetServerIsBusy() *ServerIsBusy
func (*Error) GetStaleCommand ¶
func (m *Error) GetStaleCommand() *StaleCommand
func (*Error) GetStaleEpoch ¶
func (m *Error) GetStaleEpoch() *StaleEpoch
func (*Error) GetStoreNotMatch ¶
func (m *Error) GetStoreNotMatch() *StoreNotMatch
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
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=regionId" json:"region_id,omitempty"` StartKey []byte `protobuf:"bytes,3,opt,name=start_key,json=startKey" json:"start_key,omitempty"` EndKey []byte `protobuf:"bytes,4,opt,name=end_key,json=endKey" 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) 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=regionId" 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) GetRegionId ¶
func (*NotLeader) ProtoMessage ¶
func (*NotLeader) ProtoMessage()
type RaftEntryTooLarge ¶
type RaftEntryTooLarge struct { RegionId *uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId" json:"region_id,omitempty"` EntrySize *uint64 `protobuf:"varint,2,opt,name=entry_size,json=entrySize" json:"entry_size,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*RaftEntryTooLarge) Descriptor ¶
func (*RaftEntryTooLarge) Descriptor() ([]byte, []int)
func (*RaftEntryTooLarge) GetEntrySize ¶
func (m *RaftEntryTooLarge) GetEntrySize() uint64
func (*RaftEntryTooLarge) GetRegionId ¶
func (m *RaftEntryTooLarge) GetRegionId() uint64
func (*RaftEntryTooLarge) Marshal ¶
func (m *RaftEntryTooLarge) Marshal() (dAtA []byte, err error)
func (*RaftEntryTooLarge) MarshalTo ¶
func (m *RaftEntryTooLarge) MarshalTo(dAtA []byte) (int, error)
func (*RaftEntryTooLarge) ProtoMessage ¶
func (*RaftEntryTooLarge) ProtoMessage()
func (*RaftEntryTooLarge) Reset ¶
func (m *RaftEntryTooLarge) Reset()
func (*RaftEntryTooLarge) Size ¶
func (m *RaftEntryTooLarge) Size() (n int)
func (*RaftEntryTooLarge) String ¶
func (m *RaftEntryTooLarge) String() string
func (*RaftEntryTooLarge) Unmarshal ¶
func (m *RaftEntryTooLarge) Unmarshal(dAtA []byte) error
type RegionNotFound ¶
type RegionNotFound struct { RegionId *uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId" 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) 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 { Reason *string `protobuf:"bytes,1,opt,name=reason" json:"reason,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*ServerIsBusy) Descriptor ¶
func (*ServerIsBusy) Descriptor() ([]byte, []int)
func (*ServerIsBusy) GetReason ¶
func (m *ServerIsBusy) GetReason() string
func (*ServerIsBusy) Marshal ¶
func (m *ServerIsBusy) Marshal() (dAtA []byte, err 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 StaleCommand ¶
type StaleCommand struct {
XXX_unrecognized []byte `json:"-"`
}
func (*StaleCommand) Descriptor ¶
func (*StaleCommand) Descriptor() ([]byte, []int)
func (*StaleCommand) Marshal ¶
func (m *StaleCommand) Marshal() (dAtA []byte, err error)
func (*StaleCommand) ProtoMessage ¶
func (*StaleCommand) ProtoMessage()
func (*StaleCommand) Reset ¶
func (m *StaleCommand) Reset()
func (*StaleCommand) Size ¶
func (m *StaleCommand) Size() (n int)
func (*StaleCommand) String ¶
func (m *StaleCommand) String() string
func (*StaleCommand) Unmarshal ¶
func (m *StaleCommand) Unmarshal(dAtA []byte) error
type StaleEpoch ¶
type StaleEpoch struct { NewRegions []*metapb.Region `protobuf:"bytes,1,rep,name=new_regions,json=newRegions" 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) 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
type StoreNotMatch ¶
type StoreNotMatch struct {
XXX_unrecognized []byte `json:"-"`
}
func (*StoreNotMatch) Descriptor ¶
func (*StoreNotMatch) Descriptor() ([]byte, []int)
func (*StoreNotMatch) Marshal ¶
func (m *StoreNotMatch) Marshal() (dAtA []byte, err error)
func (*StoreNotMatch) ProtoMessage ¶
func (*StoreNotMatch) ProtoMessage()
func (*StoreNotMatch) Reset ¶
func (m *StoreNotMatch) Reset()
func (*StoreNotMatch) Size ¶
func (m *StoreNotMatch) Size() (n int)
func (*StoreNotMatch) String ¶
func (m *StoreNotMatch) String() string
func (*StoreNotMatch) Unmarshal ¶
func (m *StoreNotMatch) Unmarshal(dAtA []byte) error
Click to show internal directories.
Click to hide internal directories.