shard

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Wildcard is the name indicating cross-shards requests.
	Wildcard = Name("*")
)

Functions

This section is empty.

Types

type Name

type Name string

Name hold the name of a shard. It is used by the cache-server to assign resources to a particular shard.

func New

func New(name string) Name

New returns a new instance of Name from a string.

func (Name) Empty

func (n Name) Empty() bool

Empty returns true if the name of the shard is empty

func (Name) Path

func (n Name) Path() string

Path returns a path segment for the shard to access its API.

func (Name) String

func (n Name) String() string

String returns the string representation of the shard name.

Jump to

Keyboard shortcuts

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