Documentation ¶
Index ¶
- Variables
- type Cluster
- func (*Cluster) Descriptor() ([]byte, []int)
- func (m *Cluster) GetId() uint64
- func (m *Cluster) GetMaxPeerCount() uint32
- func (m *Cluster) Marshal() (dAtA []byte, err error)
- func (m *Cluster) MarshalTo(dAtA []byte) (int, error)
- func (*Cluster) ProtoMessage()
- func (m *Cluster) Reset()
- func (m *Cluster) Size() (n int)
- func (m *Cluster) String() string
- func (m *Cluster) Unmarshal(dAtA []byte) error
- func (m *Cluster) XXX_DiscardUnknown()
- func (m *Cluster) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Cluster) XXX_Merge(src proto.Message)
- func (m *Cluster) XXX_Size() int
- func (m *Cluster) XXX_Unmarshal(b []byte) error
- type Peer
- func (*Peer) Descriptor() ([]byte, []int)
- func (m *Peer) GetId() uint64
- func (m *Peer) GetStoreId() uint64
- func (m *Peer) Marshal() (dAtA []byte, err error)
- func (m *Peer) MarshalTo(dAtA []byte) (int, error)
- func (*Peer) ProtoMessage()
- func (m *Peer) Reset()
- func (m *Peer) Size() (n int)
- func (m *Peer) String() string
- func (m *Peer) Unmarshal(dAtA []byte) error
- func (m *Peer) XXX_DiscardUnknown()
- func (m *Peer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Peer) XXX_Merge(src proto.Message)
- func (m *Peer) XXX_Size() int
- func (m *Peer) XXX_Unmarshal(b []byte) error
- type Region
- func (*Region) Descriptor() ([]byte, []int)
- func (m *Region) GetEndKey() []byte
- func (m *Region) GetId() uint64
- func (m *Region) GetPeers() []*Peer
- func (m *Region) GetRegionEpoch() *RegionEpoch
- func (m *Region) GetStartKey() []byte
- func (m *Region) Marshal() (dAtA []byte, err error)
- func (m *Region) MarshalTo(dAtA []byte) (int, error)
- func (*Region) ProtoMessage()
- func (m *Region) Reset()
- func (m *Region) Size() (n int)
- func (m *Region) String() string
- func (m *Region) Unmarshal(dAtA []byte) error
- func (m *Region) XXX_DiscardUnknown()
- func (m *Region) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Region) XXX_Merge(src proto.Message)
- func (m *Region) XXX_Size() int
- func (m *Region) XXX_Unmarshal(b []byte) error
- type RegionEpoch
- func (*RegionEpoch) Descriptor() ([]byte, []int)
- func (m *RegionEpoch) GetConfVer() uint64
- func (m *RegionEpoch) GetVersion() uint64
- func (m *RegionEpoch) Marshal() (dAtA []byte, err error)
- func (m *RegionEpoch) MarshalTo(dAtA []byte) (int, error)
- func (*RegionEpoch) ProtoMessage()
- func (m *RegionEpoch) Reset()
- func (m *RegionEpoch) Size() (n int)
- func (m *RegionEpoch) String() string
- func (m *RegionEpoch) Unmarshal(dAtA []byte) error
- func (m *RegionEpoch) XXX_DiscardUnknown()
- func (m *RegionEpoch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *RegionEpoch) XXX_Merge(src proto.Message)
- func (m *RegionEpoch) XXX_Size() int
- func (m *RegionEpoch) XXX_Unmarshal(b []byte) error
- type Store
- func (*Store) Descriptor() ([]byte, []int)
- func (m *Store) GetAddress() string
- func (m *Store) GetId() uint64
- func (m *Store) GetState() StoreState
- func (m *Store) Marshal() (dAtA []byte, err error)
- func (m *Store) MarshalTo(dAtA []byte) (int, error)
- func (*Store) ProtoMessage()
- func (m *Store) Reset()
- func (m *Store) Size() (n int)
- func (m *Store) String() string
- func (m *Store) Unmarshal(dAtA []byte) error
- func (m *Store) XXX_DiscardUnknown()
- func (m *Store) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Store) XXX_Merge(src proto.Message)
- func (m *Store) XXX_Size() int
- func (m *Store) XXX_Unmarshal(b []byte) error
- type StoreState
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthMetapb = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMetapb = fmt.Errorf("proto: integer overflow") )
View Source
var StoreState_name = map[int32]string{
0: "Up",
1: "Offline",
2: "Tombstone",
}
View Source
var StoreState_value = map[string]int32{
"Up": 0,
"Offline": 1,
"Tombstone": 2,
}
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // max peer count for a region. // scheduler will do the auto-balance if region peer count mismatches. MaxPeerCount uint32 `protobuf:"varint,2,opt,name=max_peer_count,json=maxPeerCount,proto3" json:"max_peer_count,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Cluster) Descriptor ¶
func (*Cluster) GetMaxPeerCount ¶
func (*Cluster) ProtoMessage ¶
func (*Cluster) ProtoMessage()
func (*Cluster) XXX_DiscardUnknown ¶
func (m *Cluster) XXX_DiscardUnknown()
func (*Cluster) XXX_Marshal ¶
func (*Cluster) XXX_Unmarshal ¶
type Peer ¶
type Peer struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` StoreId uint64 `protobuf:"varint,2,opt,name=store_id,json=storeId,proto3" json:"store_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Peer) Descriptor ¶
func (*Peer) GetStoreId ¶
func (*Peer) ProtoMessage ¶
func (*Peer) ProtoMessage()
func (*Peer) XXX_DiscardUnknown ¶
func (m *Peer) XXX_DiscardUnknown()
func (*Peer) XXX_Unmarshal ¶
type Region ¶
type Region struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // Region key range [start_key, end_key). StartKey []byte `protobuf:"bytes,2,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` EndKey []byte `protobuf:"bytes,3,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` RegionEpoch *RegionEpoch `protobuf:"bytes,4,opt,name=region_epoch,json=regionEpoch" json:"region_epoch,omitempty"` Peers []*Peer `protobuf:"bytes,5,rep,name=peers" json:"peers,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Region) Descriptor ¶
func (*Region) GetRegionEpoch ¶
func (m *Region) GetRegionEpoch() *RegionEpoch
func (*Region) GetStartKey ¶
func (*Region) ProtoMessage ¶
func (*Region) ProtoMessage()
func (*Region) XXX_DiscardUnknown ¶
func (m *Region) XXX_DiscardUnknown()
func (*Region) XXX_Marshal ¶
func (*Region) XXX_Unmarshal ¶
type RegionEpoch ¶
type RegionEpoch struct { // Conf change version, auto increment when add or remove peer ConfVer uint64 `protobuf:"varint,1,opt,name=conf_ver,json=confVer,proto3" json:"conf_ver,omitempty"` // Region version, auto increment when split or merge Version uint64 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RegionEpoch) Descriptor ¶
func (*RegionEpoch) Descriptor() ([]byte, []int)
func (*RegionEpoch) GetConfVer ¶
func (m *RegionEpoch) GetConfVer() uint64
func (*RegionEpoch) GetVersion ¶
func (m *RegionEpoch) GetVersion() uint64
func (*RegionEpoch) Marshal ¶
func (m *RegionEpoch) Marshal() (dAtA []byte, err error)
func (*RegionEpoch) ProtoMessage ¶
func (*RegionEpoch) ProtoMessage()
func (*RegionEpoch) Reset ¶
func (m *RegionEpoch) Reset()
func (*RegionEpoch) Size ¶
func (m *RegionEpoch) Size() (n int)
func (*RegionEpoch) String ¶
func (m *RegionEpoch) String() string
func (*RegionEpoch) Unmarshal ¶
func (m *RegionEpoch) Unmarshal(dAtA []byte) error
func (*RegionEpoch) XXX_DiscardUnknown ¶
func (m *RegionEpoch) XXX_DiscardUnknown()
func (*RegionEpoch) XXX_Marshal ¶
func (m *RegionEpoch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RegionEpoch) XXX_Merge ¶
func (dst *RegionEpoch) XXX_Merge(src proto.Message)
func (*RegionEpoch) XXX_Size ¶
func (m *RegionEpoch) XXX_Size() int
func (*RegionEpoch) XXX_Unmarshal ¶
func (m *RegionEpoch) XXX_Unmarshal(b []byte) error
type Store ¶
type Store struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // Address to handle client requests (kv, cop, etc.) Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` State StoreState `protobuf:"varint,3,opt,name=state,proto3,enum=metapb.StoreState" json:"state,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Store) Descriptor ¶
func (*Store) GetAddress ¶
func (*Store) GetState ¶
func (m *Store) GetState() StoreState
func (*Store) ProtoMessage ¶
func (*Store) ProtoMessage()
func (*Store) XXX_DiscardUnknown ¶
func (m *Store) XXX_DiscardUnknown()
func (*Store) XXX_Marshal ¶
func (*Store) XXX_Unmarshal ¶
type StoreState ¶
type StoreState int32
const ( StoreState_Up StoreState = 0 StoreState_Offline StoreState = 1 StoreState_Tombstone StoreState = 2 )
func (StoreState) EnumDescriptor ¶
func (StoreState) EnumDescriptor() ([]byte, []int)
func (StoreState) String ¶
func (x StoreState) String() string
Click to show internal directories.
Click to hide internal directories.