cluster

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster added in v1.0.5

type Cluster interface {
	// Put puts a key-value pair to cluster.
	Put(key, value []byte) error
	// Get gets value by key from cluster.
	Get(key []byte) ([]byte, error)
	// Delete deletes a key-value pair from cluster.
	Delete(key []byte) error
	// GetKeys gets all keys from cluster.
	GetKeys() ([][]byte, error)
	// UpdateConfig updates the config of cluster.
	UpdateConfig(config *config.Config) error
}

Cluster is the interface of cluster.

func NewCluster added in v1.0.5

func NewCluster(config *config.Config) (Cluster, error)

NewCluster creates a new cluster.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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