vzshard

package
v0.0.0-...-f30a32e Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func C2VDurableTopic

func C2VDurableTopic(topic string, vizierID uuid.UUID) string

C2VDurableTopic returns the sharded durable topic name.

func C2VTopic

func C2VTopic(topic string, vizierID uuid.UUID) string

C2VTopic returns the sharded topic.

func GenerateShardRange

func GenerateShardRange() []string

GenerateShardRange shard range produces the hex values 00-ff for the shards as configured.

func SetupFlags

func SetupFlags()

SetupFlags install the flag handlers for vizier shards.

func ShardMax

func ShardMax() string

ShardMax returns the max hex value of the vizier shard.

func ShardMin

func ShardMin() string

ShardMin returns the min hex value of the vizier shard.

func V2CDurableTopic

func V2CDurableTopic(topic string, vizierID uuid.UUID) string

V2CDurableTopic returns the sharded durable topic name.

func V2CTopic

func V2CTopic(topic string, vizierID uuid.UUID) string

V2CTopic returns the sharded topic name.

func VizierIDToShard

func VizierIDToShard(vizierID uuid.UUID) string

VizierIDToShard provides the shardID for a given vizierID.

Types

This section is empty.

Jump to

Keyboard shortcuts

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