consensus

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Consensus

type Consensus struct {
	// contains filtered or unexported fields
}

func New

func New(nodeID, raftPort, raftAdvertise, dataDir string, fsm raft.FSM) (*Consensus, error)

func (*Consensus) Raft

func (c *Consensus) Raft() *raft.Raft

func (*Consensus) Shutdown

func (c *Consensus) Shutdown() error

func (*Consensus) WaitForLeader

func (c *Consensus) WaitForLeader(timeout time.Duration) error

Jump to

Keyboard shortcuts

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