Documentation ¶
Overview ¶
Package meta is a generated protocol buffer package.
It is generated from these files:
pb.proto
It has these top-level messages:
Label Peer Epoch VectorDB Store
Index ¶
- Variables
- type DBState
- type Epoch
- func (*Epoch) Descriptor() ([]byte, []int)
- func (m *Epoch) GetConfVersion() uint64
- func (m *Epoch) GetVersion() uint64
- func (m *Epoch) Marshal() (dAtA []byte, err error)
- func (m *Epoch) MarshalTo(dAtA []byte) (int, error)
- func (*Epoch) ProtoMessage()
- func (m *Epoch) Reset()
- func (m *Epoch) Size() (n int)
- func (m *Epoch) String() string
- func (m *Epoch) Unmarshal(dAtA []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 (*Label) ProtoMessage()
- func (m *Label) Reset()
- func (m *Label) Size() (n int)
- func (m *Label) String() string
- func (m *Label) Unmarshal(dAtA []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
- 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 (*Store) ProtoMessage()
- func (m *Store) Reset()
- func (m *Store) Size() (n int)
- func (m *Store) String() string
- func (m *Store) Unmarshal(dAtA []byte) error
- type StoreState
- type VectorDB
- func (*VectorDB) Descriptor() ([]byte, []int)
- func (m *VectorDB) GetEpoch() Epoch
- func (m *VectorDB) GetID() uint64
- func (m *VectorDB) GetPeers() []*Peer
- func (m *VectorDB) GetStart() uint64
- func (m *VectorDB) GetState() DBState
- func (m *VectorDB) Marshal() (dAtA []byte, err error)
- func (m *VectorDB) MarshalTo(dAtA []byte) (int, error)
- func (*VectorDB) ProtoMessage()
- func (m *VectorDB) Reset()
- func (m *VectorDB) Size() (n int)
- func (m *VectorDB) String() string
- func (m *VectorDB) Unmarshal(dAtA []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthPb = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowPb = fmt.Errorf("proto: integer overflow") )
View Source
var DBState_name = map[int32]string{
0: "RU",
1: "RWU",
}
View Source
var DBState_value = map[string]int32{
"RU": 0,
"RWU": 1,
}
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 DBState ¶
type DBState int32
DBState db state
func (DBState) EnumDescriptor ¶
func (*DBState) UnmarshalJSON ¶
type Epoch ¶
type Epoch struct { Version uint64 `protobuf:"varint,1,opt,name=version" json:"version"` ConfVersion uint64 `protobuf:"varint,2,opt,name=confVersion" json:"confVersion"` XXX_unrecognized []byte `json:"-"` }
func (*Epoch) Descriptor ¶
func (*Epoch) GetConfVersion ¶
func (*Epoch) GetVersion ¶
func (*Epoch) ProtoMessage ¶
func (*Epoch) ProtoMessage()
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_unrecognized []byte `json:"-"` }
func (*Label) Descriptor ¶
func (*Label) ProtoMessage ¶
func (*Label) ProtoMessage()
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_unrecognized []byte `json:"-"` }
func (*Peer) Descriptor ¶
func (*Peer) GetStoreID ¶
func (*Peer) ProtoMessage ¶
func (*Peer) ProtoMessage()
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"` ClientAddress string `protobuf:"bytes,3,opt,name=clientAddress" json:"clientAddress"` Lables []Label `protobuf:"bytes,4,rep,name=lables" json:"lables"` State StoreState `protobuf:"varint,5,opt,name=state,enum=meta.StoreState" json:"state"` XXX_unrecognized []byte `json:"-"` }
Store container of vectordb
func (*Store) Descriptor ¶
func (*Store) GetAddress ¶
func (*Store) GetClientAddress ¶
func (*Store) GetState ¶
func (m *Store) GetState() StoreState
func (*Store) ProtoMessage ¶
func (*Store) ProtoMessage()
type StoreState ¶
type StoreState int32
StoreState store state
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
type VectorDB ¶
type VectorDB struct { ID uint64 `protobuf:"varint,1,opt,name=id" json:"id"` State DBState `protobuf:"varint,2,opt,name=state,enum=meta.DBState" json:"state"` Start uint64 `protobuf:"varint,3,opt,name=start" json:"start"` Epoch Epoch `protobuf:"bytes,4,opt,name=epoch" json:"epoch"` Peers []*Peer `protobuf:"bytes,5,rep,name=peers" json:"peers,omitempty"` XXX_unrecognized []byte `json:"-"` }
VectorDB is a vectorDB
func (*VectorDB) Descriptor ¶
func (*VectorDB) ProtoMessage ¶
func (*VectorDB) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.