raft

package
v0.0.0-...-e47cf43 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MetricPrefix     = "nexus."
	NodeIdDefaultTag = "nexusNode"
)

Variables

This section is empty.

Functions

func NewRaftNode

func NewRaftNode(opts pkg_raft.Options, statsCli stats.Client, store db.Store) *raftNode

NewRaftNode initiates a raft instance and returns a committed log entry channel and error channel. Proposals for log updates are sent over the provided the proposal channel. All log entries are replayed over the commit channel, followed by a nil message (to indicate the channel is current), then new log entries. To shutdown, close proposeC and read errorC.

func NewReplicator

func NewReplicator(store db.Store, options pkg_raft.Options) *replicator

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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