shard

package
v0.176.7 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MPL-2.0, MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultShardIndex = 32
View Source
const MainStatusShardCluster = 16
View Source
const NonProtectedShardIndex = 64
View Source
const UndefinedShardValue = 0

Variables

This section is empty.

Functions

func DefaultNonProtectedPubsubTopic

func DefaultNonProtectedPubsubTopic() string

func DefaultShardPubsubTopic

func DefaultShardPubsubTopic() string

Types

type Shard

type Shard struct {
	Cluster uint16 `json:"cluster"`
	Index   uint16 `json:"index"`
}

func DefaultShard added in v0.171.39

func DefaultShard() *Shard

func FromProtobuff

func FromProtobuff(p *protobuf.Shard) *Shard

func (*Shard) Protobuffer

func (s *Shard) Protobuffer() *protobuf.Shard

func (*Shard) PubsubTopic

func (s *Shard) PubsubTopic() string

Jump to

Keyboard shortcuts

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