//
pkg.gl
Category
github.com/ibiscum/Go-Programming-Cookbook-Second-Edition
chapter11
internal
consensus
package
0.0.0-20241212173216-745cb4b42230
Repository:
https://github.com/ibiscum/go-programming-cookbook-second-edition.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
5
Dependents
1
Files
167 SLOC
#
Functions
Config
Config creates num in-memory raft nodes and connects them.
Handler
Handler grabs the get param ?next= and tries to transition to the state contained there.
NewFSM
NewFSM creates a new FSM with start state of "first".
#
Structs
FSM
FSM implements the raft FSM interface and holds a state.