shardpb

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package shardpb contains the protobuf-generated code for the internal cluster communication

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use WireNodes.ProtoReflect.Descriptor instead.

func (*WireNodes) GetNodeId

func (x *WireNodes) GetNodeId() int32

func (*WireNodes) GetNodeName

func (x *WireNodes) GetNodeName() string

func (*WireNodes) ProtoMessage

func (*WireNodes) ProtoMessage()

func (*WireNodes) ProtoReflect added in v0.0.4

func (x *WireNodes) ProtoReflect() protoreflect.Message

func (*WireNodes) Reset

func (x *WireNodes) Reset()

func (*WireNodes) String

func (x *WireNodes) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use WireShard.ProtoReflect.Descriptor instead.

func (*WireShard) GetId

func (x *WireShard) GetId() int32

func (*WireShard) GetNodeId

func (x *WireShard) GetNodeId() int32

func (*WireShard) GetWeight

func (x *WireShard) GetWeight() int32

func (*WireShard) ProtoMessage

func (*WireShard) ProtoMessage()

func (*WireShard) ProtoReflect added in v0.0.4

func (x *WireShard) ProtoReflect() protoreflect.Message

func (*WireShard) Reset

func (x *WireShard) Reset()

func (*WireShard) String

func (x *WireShard) String() string

Jump to

Keyboard shortcuts

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