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.
Click to show internal directories.
Click to hide internal directories.