cluster

package
v0.1.62 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2025 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	Channels      *channels.Cluster
	Node          *node.Node
	Cluster       *node.Nodes
	InSync        chan bool
	NodeConf      chan node.Node
	NodeFinalizer chan node.Node
	KVStore       *raft.KVStore
	RaftLeader    uint64
	RaftNode      *raft.RaftNode
	Started       bool
	Replay        bool
	Join          bool
}

func New

func New() *Cluster

func Restore

func Restore(config *configuration.Configuration) (*Cluster, error)

func (*Cluster) Peers added in v0.1.42

func (cluster *Cluster) Peers() *node.Nodes

func (*Cluster) Regenerate added in v0.0.73

func (cluster *Cluster) Regenerate(config *configuration.Configuration, keys *keys.Keys)

Jump to

Keyboard shortcuts

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