errorpb

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2018 License: Apache-2.0 Imports: 6 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
RangeNotFound
KeyNotInRange
StaleCommand
Timeout
RaftFail
StaleEpoch
StaleRange
ServerIsBusy
EntryTooLarge
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 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) MarshalTo

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

func (*Error) GetEntryTooLarge

func (m *Error) GetEntryTooLarge() *EntryTooLarge

func (*Error) GetKeyNotInRange

func (m *Error) GetKeyNotInRange() *KeyNotInRange

func (*Error) GetMessage

func (m *Error) GetMessage() string

func (*Error) GetNotLeader

func (m *Error) GetNotLeader() *NotLeader

func (*Error) GetRaftFail

func (m *Error) GetRaftFail() *RaftFail

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 (m *Error) GetTimeout() *Timeout

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 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) MarshalTo

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

func (*NotLeader) GetEpoch

func (m *NotLeader) GetEpoch() *metapb.RangeEpoch

func (*NotLeader) GetLeader

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

func (*NotLeader) GetRangeId

func (m *NotLeader) GetRangeId() 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 RaftFail

type RaftFail struct {
}

func (*RaftFail) Descriptor

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

func (*RaftFail) Marshal

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

func (*RaftFail) MarshalTo

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

func (*RaftFail) ProtoMessage

func (*RaftFail) ProtoMessage()

func (*RaftFail) Reset

func (m *RaftFail) Reset()

func (*RaftFail) Size

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

func (*RaftFail) String

func (m *RaftFail) String() string

func (*RaftFail) Unmarshal

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

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) MarshalTo

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

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

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) MarshalTo

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

func (*Timeout) Marshal

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

func (*Timeout) MarshalTo

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

func (*Timeout) ProtoMessage

func (*Timeout) ProtoMessage()

func (*Timeout) Reset

func (m *Timeout) Reset()

func (*Timeout) Size

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

func (*Timeout) String

func (m *Timeout) String() string

func (*Timeout) Unmarshal

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

Jump to

Keyboard shortcuts

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