partition

package
v0.0.0-...-eacc1e1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrClientNotFound = errors.New("client not found")
)

Functions

This section is empty.

Types

type Cache

type Cache interface {
	GetRoutingKey(key string) (string, error)
	GetPartitions() []string

	AddPending(hostname, routingKey string) error
	AddReady(hostname string) error

	AnyClients() bool

	AssignToFreePartition(key string) string
	Delete(hostname string)
}

func NewCache

func NewCache() Cache

type Partition

type Partition struct {
	RoutingKey string
}

Jump to

Keyboard shortcuts

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