Documentation
¶
Overview ¶
Package shardpb contains the protobuf-generated code for the internal cluster communication
Index ¶
- Variables
- type ShardDistribution
- func (*ShardDistribution) Descriptor() ([]byte, []int)deprecated
- func (x *ShardDistribution) GetNodes() []*WireNodes
- func (x *ShardDistribution) GetShards() []*WireShard
- func (*ShardDistribution) ProtoMessage()
- func (x *ShardDistribution) ProtoReflect() protoreflect.Message
- func (x *ShardDistribution) Reset()
- func (x *ShardDistribution) String() string
- type WireNodes
- type WireShard
- func (*WireShard) Descriptor() ([]byte, []int)deprecated
- func (x *WireShard) GetId() int32
- func (x *WireShard) GetNodeId() int32
- func (x *WireShard) GetWeight() int32
- func (*WireShard) ProtoMessage()
- func (x *WireShard) ProtoReflect() protoreflect.Message
- func (x *WireShard) Reset()
- func (x *WireShard) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_sharding_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ShardDistribution ¶
type ShardDistribution struct { Nodes []*WireNodes `protobuf:"bytes,1,rep,name=Nodes,proto3" json:"Nodes,omitempty"` Shards []*WireShard `protobuf:"bytes,2,rep,name=Shards,proto3" json:"Shards,omitempty"` // contains filtered or unexported fields }
func (*ShardDistribution) Descriptor
deprecated
func (*ShardDistribution) Descriptor() ([]byte, []int)
Deprecated: Use ShardDistribution.ProtoReflect.Descriptor instead.
func (*ShardDistribution) GetNodes ¶
func (x *ShardDistribution) GetNodes() []*WireNodes
func (*ShardDistribution) GetShards ¶
func (x *ShardDistribution) GetShards() []*WireShard
func (*ShardDistribution) ProtoMessage ¶
func (*ShardDistribution) ProtoMessage()
func (*ShardDistribution) ProtoReflect ¶ added in v0.0.4
func (x *ShardDistribution) ProtoReflect() protoreflect.Message
func (*ShardDistribution) Reset ¶
func (x *ShardDistribution) Reset()
func (*ShardDistribution) String ¶
func (x *ShardDistribution) String() string
type WireNodes ¶
type WireNodes struct { NodeId int32 `protobuf:"varint,1,opt,name=NodeId,proto3" json:"NodeId,omitempty"` NodeName string `protobuf:"bytes,2,opt,name=NodeName,proto3" json:"NodeName,omitempty"` // contains filtered or unexported fields }
func (*WireNodes) Descriptor
deprecated
func (*WireNodes) GetNodeName ¶
func (*WireNodes) ProtoMessage ¶
func (*WireNodes) ProtoMessage()
func (*WireNodes) ProtoReflect ¶ added in v0.0.4
func (x *WireNodes) ProtoReflect() protoreflect.Message
type WireShard ¶
type WireShard struct { Id int32 `protobuf:"varint,1,opt,name=Id,proto3" json:"Id,omitempty"` Weight int32 `protobuf:"varint,2,opt,name=Weight,proto3" json:"Weight,omitempty"` NodeId int32 `protobuf:"varint,3,opt,name=NodeId,proto3" json:"NodeId,omitempty"` // contains filtered or unexported fields }
func (*WireShard) Descriptor
deprecated
func (*WireShard) ProtoMessage ¶
func (*WireShard) ProtoMessage()
func (*WireShard) ProtoReflect ¶ added in v0.0.4
func (x *WireShard) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.