cluster

package
v0.0.0-...-e130aba Latest Latest
Warning

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

Go to latest
Published: May 9, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package cluster

Provides ready-to-use interface for memstore code

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster interface {
	Execute(cmds []command.Command) ([]string, error)
	Initialize(ctx context.Context)
}

Cluster handles distribution of commands between nodes. Besides of array of nodes it contains consistent-hasher which maps key of command to specific node.

func New

func New() Cluster

New creates an empty cluster without initialization

Jump to

Keyboard shortcuts

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