shard

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 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

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 DefaultNonProtectedShard added in v0.179.28

func DefaultNonProtectedShard() *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