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 RangeNotFound KeyNotInRange StaleCommand Timeout RaftFail StaleEpoch StaleRange ServerIsBusy EntryTooLarge Error
Index ¶
- Variables
- type EntryTooLarge
- func (*EntryTooLarge) Descriptor() ([]byte, []int)
- func (m *EntryTooLarge) GetEntrySize() uint64
- func (m *EntryTooLarge) GetRangeId() uint64
- func (m *EntryTooLarge) Marshal() (dAtA []byte, err error)
- func (m *EntryTooLarge) MarshalTo(dAtA []byte) (int, error)
- func (*EntryTooLarge) ProtoMessage()
- func (m *EntryTooLarge) Reset()
- func (m *EntryTooLarge) Size() (n int)
- func (m *EntryTooLarge) String() string
- func (m *EntryTooLarge) Unmarshal(dAtA []byte) error
- type Error
- func (*Error) Descriptor() ([]byte, []int)
- func (m *Error) GetEntryTooLarge() *EntryTooLarge
- func (m *Error) GetKeyNotInRange() *KeyNotInRange
- func (m *Error) GetMessage() string
- func (m *Error) GetNotLeader() *NotLeader
- func (m *Error) GetRaftFail() *RaftFail
- func (m *Error) GetRangeNotFound() *RangeNotFound
- func (m *Error) GetServerIsBusy() *ServerIsBusy
- func (m *Error) GetStaleCommand() *StaleCommand
- func (m *Error) GetStaleEpoch() *StaleEpoch
- func (m *Error) GetStaleRange() *StaleRange
- func (m *Error) GetTimeout() *Timeout
- 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 KeyNotInRange
- func (*KeyNotInRange) Descriptor() ([]byte, []int)
- func (m *KeyNotInRange) GetEndKey() []byte
- func (m *KeyNotInRange) GetKey() []byte
- func (m *KeyNotInRange) GetRangeId() uint64
- func (m *KeyNotInRange) GetStartKey() []byte
- func (m *KeyNotInRange) Marshal() (dAtA []byte, err error)
- func (m *KeyNotInRange) MarshalTo(dAtA []byte) (int, error)
- func (*KeyNotInRange) ProtoMessage()
- func (m *KeyNotInRange) Reset()
- func (m *KeyNotInRange) Size() (n int)
- func (m *KeyNotInRange) String() string
- func (m *KeyNotInRange) Unmarshal(dAtA []byte) error
- type NotLeader
- func (*NotLeader) Descriptor() ([]byte, []int)
- func (m *NotLeader) GetEpoch() *metapb.RangeEpoch
- func (m *NotLeader) GetLeader() *metapb.Peer
- func (m *NotLeader) GetRangeId() 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 RaftFail
- func (*RaftFail) Descriptor() ([]byte, []int)
- func (m *RaftFail) Marshal() (dAtA []byte, err error)
- func (m *RaftFail) MarshalTo(dAtA []byte) (int, error)
- func (*RaftFail) ProtoMessage()
- func (m *RaftFail) Reset()
- func (m *RaftFail) Size() (n int)
- func (m *RaftFail) String() string
- func (m *RaftFail) Unmarshal(dAtA []byte) error
- type RangeNotFound
- func (*RangeNotFound) Descriptor() ([]byte, []int)
- func (m *RangeNotFound) GetRangeId() uint64
- func (m *RangeNotFound) Marshal() (dAtA []byte, err error)
- func (m *RangeNotFound) MarshalTo(dAtA []byte) (int, error)
- func (*RangeNotFound) ProtoMessage()
- func (m *RangeNotFound) Reset()
- func (m *RangeNotFound) Size() (n int)
- func (m *RangeNotFound) String() string
- func (m *RangeNotFound) 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) GetNewRange() *metapb.Range
- func (m *StaleEpoch) GetOldRange() *metapb.Range
- 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 StaleRange
- func (*StaleRange) Descriptor() ([]byte, []int)
- func (m *StaleRange) GetRange() *metapb.Range
- func (m *StaleRange) Marshal() (dAtA []byte, err error)
- func (m *StaleRange) MarshalTo(dAtA []byte) (int, error)
- func (*StaleRange) ProtoMessage()
- func (m *StaleRange) Reset()
- func (m *StaleRange) Size() (n int)
- func (m *StaleRange) String() string
- func (m *StaleRange) Unmarshal(dAtA []byte) error
- type Timeout
- func (*Timeout) Descriptor() ([]byte, []int)
- func (m *Timeout) Marshal() (dAtA []byte, err error)
- func (m *Timeout) MarshalTo(dAtA []byte) (int, error)
- func (*Timeout) ProtoMessage()
- func (m *Timeout) Reset()
- func (m *Timeout) Size() (n int)
- func (m *Timeout) String() string
- func (m *Timeout) 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 EntryTooLarge ¶
type EntryTooLarge struct {
RangeId uint64 `protobuf:"varint,1,opt,name=range_id,json=rangeId,proto3" json:"range_id,omitempty"`
EntrySize uint64 `protobuf:"varint,2,opt,name=entry_size,json=entrySize,proto3" json:"entry_size,omitempty"`
}
func (*EntryTooLarge) Descriptor ¶
func (*EntryTooLarge) Descriptor() ([]byte, []int)
func (*EntryTooLarge) GetEntrySize ¶
func (m *EntryTooLarge) GetEntrySize() uint64
func (*EntryTooLarge) GetRangeId ¶
func (m *EntryTooLarge) GetRangeId() uint64
func (*EntryTooLarge) Marshal ¶
func (m *EntryTooLarge) Marshal() (dAtA []byte, err error)
func (*EntryTooLarge) ProtoMessage ¶
func (*EntryTooLarge) ProtoMessage()
func (*EntryTooLarge) Reset ¶
func (m *EntryTooLarge) Reset()
func (*EntryTooLarge) Size ¶
func (m *EntryTooLarge) Size() (n int)
func (*EntryTooLarge) String ¶
func (m *EntryTooLarge) String() string
func (*EntryTooLarge) Unmarshal ¶
func (m *EntryTooLarge) Unmarshal(dAtA []byte) error
type Error ¶
type Error struct {
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
NotLeader *NotLeader `protobuf:"bytes,2,opt,name=not_leader,json=notLeader" json:"not_leader,omitempty"`
StaleCommand *StaleCommand `protobuf:"bytes,3,opt,name=stale_command,json=staleCommand" json:"stale_command,omitempty"`
RangeNotFound *RangeNotFound `protobuf:"bytes,4,opt,name=range_not_found,json=rangeNotFound" json:"range_not_found,omitempty"`
KeyNotInRange *KeyNotInRange `protobuf:"bytes,5,opt,name=key_not_in_range,json=keyNotInRange" json:"key_not_in_range,omitempty"`
StaleEpoch *StaleEpoch `protobuf:"bytes,6,opt,name=stale_epoch,json=staleEpoch" json:"stale_epoch,omitempty"`
ServerIsBusy *ServerIsBusy `protobuf:"bytes,7,opt,name=server_is_busy,json=serverIsBusy" json:"server_is_busy,omitempty"`
EntryTooLarge *EntryTooLarge `protobuf:"bytes,8,opt,name=entry_too_large,json=entryTooLarge" json:"entry_too_large,omitempty"`
Timeout *Timeout `protobuf:"bytes,9,opt,name=timeout" json:"timeout,omitempty"`
RaftFail *RaftFail `protobuf:"bytes,10,opt,name=raft_fail,json=raftFail" json:"raft_fail,omitempty"`
StaleRange *StaleRange `protobuf:"bytes,11,opt,name=stale_range,json=staleRange" json:"stale_range,omitempty"`
}
func (*Error) Descriptor ¶
func (*Error) GetEntryTooLarge ¶
func (m *Error) GetEntryTooLarge() *EntryTooLarge
func (*Error) GetKeyNotInRange ¶
func (m *Error) GetKeyNotInRange() *KeyNotInRange
func (*Error) GetMessage ¶
func (*Error) GetNotLeader ¶
func (*Error) GetRaftFail ¶
func (*Error) GetRangeNotFound ¶
func (m *Error) GetRangeNotFound() *RangeNotFound
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) GetStaleRange ¶
func (m *Error) GetStaleRange() *StaleRange
func (*Error) GetTimeout ¶
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
type KeyNotInRange ¶
type KeyNotInRange struct {
Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
RangeId uint64 `protobuf:"varint,2,opt,name=range_id,json=rangeId,proto3" json:"range_id,omitempty"`
StartKey []byte `protobuf:"bytes,3,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"`
EndKey []byte `protobuf:"bytes,4,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"`
}
func (*KeyNotInRange) Descriptor ¶
func (*KeyNotInRange) Descriptor() ([]byte, []int)
func (*KeyNotInRange) GetEndKey ¶
func (m *KeyNotInRange) GetEndKey() []byte
func (*KeyNotInRange) GetKey ¶
func (m *KeyNotInRange) GetKey() []byte
func (*KeyNotInRange) GetRangeId ¶
func (m *KeyNotInRange) GetRangeId() uint64
func (*KeyNotInRange) GetStartKey ¶
func (m *KeyNotInRange) GetStartKey() []byte
func (*KeyNotInRange) Marshal ¶
func (m *KeyNotInRange) Marshal() (dAtA []byte, err error)
func (*KeyNotInRange) ProtoMessage ¶
func (*KeyNotInRange) ProtoMessage()
func (*KeyNotInRange) Reset ¶
func (m *KeyNotInRange) Reset()
func (*KeyNotInRange) Size ¶
func (m *KeyNotInRange) Size() (n int)
func (*KeyNotInRange) String ¶
func (m *KeyNotInRange) String() string
func (*KeyNotInRange) Unmarshal ¶
func (m *KeyNotInRange) Unmarshal(dAtA []byte) error
type NotLeader ¶
type NotLeader struct {
RangeId uint64 `protobuf:"varint,1,opt,name=range_id,json=rangeId,proto3" json:"range_id,omitempty"`
Epoch *metapb.RangeEpoch `protobuf:"bytes,2,opt,name=epoch" json:"epoch,omitempty"`
Leader *metapb.Peer `protobuf:"bytes,3,opt,name=leader" json:"leader,omitempty"`
}
func (*NotLeader) Descriptor ¶
func (*NotLeader) GetEpoch ¶
func (m *NotLeader) GetEpoch() *metapb.RangeEpoch
func (*NotLeader) GetRangeId ¶
func (*NotLeader) ProtoMessage ¶
func (*NotLeader) ProtoMessage()
type RaftFail ¶
type RaftFail struct {
}
func (*RaftFail) Descriptor ¶
func (*RaftFail) ProtoMessage ¶
func (*RaftFail) ProtoMessage()
type RangeNotFound ¶
type RangeNotFound struct {
RangeId uint64 `protobuf:"varint,1,opt,name=range_id,json=rangeId,proto3" json:"range_id,omitempty"`
}
func (*RangeNotFound) Descriptor ¶
func (*RangeNotFound) Descriptor() ([]byte, []int)
func (*RangeNotFound) GetRangeId ¶
func (m *RangeNotFound) GetRangeId() uint64
func (*RangeNotFound) Marshal ¶
func (m *RangeNotFound) Marshal() (dAtA []byte, err error)
func (*RangeNotFound) ProtoMessage ¶
func (*RangeNotFound) ProtoMessage()
func (*RangeNotFound) Reset ¶
func (m *RangeNotFound) Reset()
func (*RangeNotFound) Size ¶
func (m *RangeNotFound) Size() (n int)
func (*RangeNotFound) String ¶
func (m *RangeNotFound) String() string
func (*RangeNotFound) Unmarshal ¶
func (m *RangeNotFound) Unmarshal(dAtA []byte) error
type ServerIsBusy ¶
type ServerIsBusy struct {
Reason string `protobuf:"bytes,1,opt,name=reason,proto3" json:"reason,omitempty"`
}
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 {
}
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 {
OldRange *metapb.Range `protobuf:"bytes,1,opt,name=old_range,json=oldRange" json:"old_range,omitempty"`
NewRange *metapb.Range `protobuf:"bytes,2,opt,name=new_range,json=newRange" json:"new_range,omitempty"`
}
func (*StaleEpoch) Descriptor ¶
func (*StaleEpoch) Descriptor() ([]byte, []int)
func (*StaleEpoch) GetNewRange ¶
func (m *StaleEpoch) GetNewRange() *metapb.Range
func (*StaleEpoch) GetOldRange ¶
func (m *StaleEpoch) GetOldRange() *metapb.Range
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 StaleRange ¶
type StaleRange struct {
Range *metapb.Range `protobuf:"bytes,1,opt,name=range" json:"range,omitempty"`
}
func (*StaleRange) Descriptor ¶
func (*StaleRange) Descriptor() ([]byte, []int)
func (*StaleRange) GetRange ¶
func (m *StaleRange) GetRange() *metapb.Range
func (*StaleRange) Marshal ¶
func (m *StaleRange) Marshal() (dAtA []byte, err error)
func (*StaleRange) ProtoMessage ¶
func (*StaleRange) ProtoMessage()
func (*StaleRange) Reset ¶
func (m *StaleRange) Reset()
func (*StaleRange) Size ¶
func (m *StaleRange) Size() (n int)
func (*StaleRange) String ¶
func (m *StaleRange) String() string
func (*StaleRange) Unmarshal ¶
func (m *StaleRange) Unmarshal(dAtA []byte) error
type Timeout ¶
type Timeout struct {
}
func (*Timeout) Descriptor ¶
func (*Timeout) ProtoMessage ¶
func (*Timeout) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.