Documentation ¶
Index ¶
- Variables
- type Cell
- func (*Cell) Descriptor() ([]byte, []int)
- func (m *Cell) GetEnd() []byte
- func (m *Cell) GetEpoch() CellEpoch
- func (m *Cell) GetID() uint64
- func (m *Cell) GetPeers() []*Peer
- func (m *Cell) GetStart() []byte
- func (m *Cell) Marshal() (dAtA []byte, err error)
- func (m *Cell) MarshalTo(dAtA []byte) (int, error)
- func (m *Cell) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Cell) ProtoMessage()
- func (m *Cell) Reset()
- func (m *Cell) Size() (n int)
- func (m *Cell) String() string
- func (m *Cell) Unmarshal(dAtA []byte) error
- func (m *Cell) XXX_DiscardUnknown()
- func (m *Cell) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Cell) XXX_Merge(src proto.Message)
- func (m *Cell) XXX_Size() int
- func (m *Cell) XXX_Unmarshal(b []byte) error
- type CellEpoch
- func (*CellEpoch) Descriptor() ([]byte, []int)
- func (m *CellEpoch) GetCellVer() uint64
- func (m *CellEpoch) GetConfVer() uint64
- func (m *CellEpoch) Marshal() (dAtA []byte, err error)
- func (m *CellEpoch) MarshalTo(dAtA []byte) (int, error)
- func (m *CellEpoch) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CellEpoch) ProtoMessage()
- func (m *CellEpoch) Reset()
- func (m *CellEpoch) Size() (n int)
- func (m *CellEpoch) String() string
- func (m *CellEpoch) Unmarshal(dAtA []byte) error
- func (m *CellEpoch) XXX_DiscardUnknown()
- func (m *CellEpoch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CellEpoch) XXX_Merge(src proto.Message)
- func (m *CellEpoch) XXX_Size() int
- func (m *CellEpoch) XXX_Unmarshal(b []byte) error
- type Cluster
- func (*Cluster) Descriptor() ([]byte, []int)
- func (m *Cluster) GetID() uint64
- func (m *Cluster) GetMaxReplicas() uint32
- func (m *Cluster) Marshal() (dAtA []byte, err error)
- func (m *Cluster) MarshalTo(dAtA []byte) (int, error)
- func (m *Cluster) MarshalToSizedBuffer(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 (m *Cluster) XXX_Merge(src proto.Message)
- func (m *Cluster) XXX_Size() int
- func (m *Cluster) XXX_Unmarshal(b []byte) error
- type Label
- func (*Label) Descriptor() ([]byte, []int)
- func (m *Label) GetKey() string
- func (m *Label) GetValue() string
- func (m *Label) Marshal() (dAtA []byte, err error)
- func (m *Label) MarshalTo(dAtA []byte) (int, error)
- func (m *Label) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Label) ProtoMessage()
- func (m *Label) Reset()
- func (m *Label) Size() (n int)
- func (m *Label) String() string
- func (m *Label) Unmarshal(dAtA []byte) error
- func (m *Label) XXX_DiscardUnknown()
- func (m *Label) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Label) XXX_Merge(src proto.Message)
- func (m *Label) XXX_Size() int
- func (m *Label) 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 (m *Peer) MarshalToSizedBuffer(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 (m *Peer) XXX_Merge(src proto.Message)
- func (m *Peer) XXX_Size() int
- func (m *Peer) XXX_Unmarshal(b []byte) error
- type Store
- func (*Store) Descriptor() ([]byte, []int)
- func (m *Store) GetAddress() string
- func (m *Store) GetClientAddress() string
- func (m *Store) GetID() uint64
- func (m *Store) GetLables() []Label
- func (m *Store) GetState() StoreState
- func (m *Store) Marshal() (dAtA []byte, err error)
- func (m *Store) MarshalTo(dAtA []byte) (int, error)
- func (m *Store) MarshalToSizedBuffer(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 (m *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: "Down",
2: "Tombstone",
}
View Source
var StoreState_value = map[string]int32{
"UP": 0,
"Down": 1,
"Tombstone": 2,
}
Functions ¶
This section is empty.
Types ¶
type Cell ¶
type Cell struct { ID uint64 `protobuf:"varint,1,opt,name=id" json:"id"` Start []byte `protobuf:"bytes,2,opt,name=start" json:"start,omitempty"` End []byte `protobuf:"bytes,3,opt,name=end" json:"end,omitempty"` Epoch CellEpoch `protobuf:"bytes,4,opt,name=epoch" json:"epoch"` Peers []*Peer `protobuf:"bytes,5,rep,name=peers" json:"peers,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Cell) Descriptor ¶
func (*Cell) ProtoMessage ¶
func (*Cell) ProtoMessage()
func (*Cell) XXX_DiscardUnknown ¶
func (m *Cell) XXX_DiscardUnknown()
func (*Cell) XXX_Unmarshal ¶
type CellEpoch ¶
type CellEpoch struct { ConfVer uint64 `protobuf:"varint,1,opt,name=confVer" json:"confVer"` CellVer uint64 `protobuf:"varint,2,opt,name=cellVer" json:"cellVer"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CellEpoch) Descriptor ¶
func (*CellEpoch) GetCellVer ¶
func (*CellEpoch) GetConfVer ¶
func (*CellEpoch) MarshalToSizedBuffer ¶
func (*CellEpoch) ProtoMessage ¶
func (*CellEpoch) ProtoMessage()
func (*CellEpoch) XXX_DiscardUnknown ¶
func (m *CellEpoch) XXX_DiscardUnknown()
func (*CellEpoch) XXX_Marshal ¶
func (*CellEpoch) XXX_Unmarshal ¶
type Cluster ¶
type Cluster struct { ID uint64 `protobuf:"varint,1,opt,name=id" json:"id"` MaxReplicas uint32 `protobuf:"varint,2,opt,name=maxReplicas" json:"maxReplicas"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Cluster) Descriptor ¶
func (*Cluster) GetMaxReplicas ¶
func (*Cluster) MarshalToSizedBuffer ¶
func (*Cluster) ProtoMessage ¶
func (*Cluster) ProtoMessage()
func (*Cluster) XXX_DiscardUnknown ¶
func (m *Cluster) XXX_DiscardUnknown()
func (*Cluster) XXX_Marshal ¶
func (*Cluster) XXX_Unmarshal ¶
type Label ¶
type Label struct { Key string `protobuf:"bytes,1,opt,name=key" json:"key"` Value string `protobuf:"bytes,2,opt,name=value" json:"value"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Label) Descriptor ¶
func (*Label) ProtoMessage ¶
func (*Label) ProtoMessage()
func (*Label) XXX_DiscardUnknown ¶
func (m *Label) XXX_DiscardUnknown()
func (*Label) XXX_Marshal ¶
func (*Label) XXX_Unmarshal ¶
type Peer ¶
type Peer struct { ID uint64 `protobuf:"varint,1,opt,name=id" json:"id"` StoreID uint64 `protobuf:"varint,2,opt,name=storeID" json:"storeID"` 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 Store ¶
type Store struct { ID uint64 `protobuf:"varint,1,opt,name=id" json:"id"` Address string `protobuf:"bytes,2,opt,name=address" json:"address"` Lables []Label `protobuf:"bytes,3,rep,name=lables" json:"lables"` State StoreState `protobuf:"varint,4,opt,name=state,enum=metapb.StoreState" json:"state"` ClientAddress string `protobuf:"bytes,5,opt,name=clientAddress" json:"clientAddress"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Store) Descriptor ¶
func (*Store) GetAddress ¶
func (*Store) GetClientAddress ¶
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 ( UP StoreState = 0 Down StoreState = 1 Tombstone StoreState = 2 )
func (StoreState) Enum ¶
func (x StoreState) Enum() *StoreState
func (StoreState) EnumDescriptor ¶
func (StoreState) EnumDescriptor() ([]byte, []int)
func (StoreState) String ¶
func (x StoreState) String() string
func (*StoreState) UnmarshalJSON ¶
func (x *StoreState) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.