Discover Packages
github.com/gabrielperezs/consul
agent
consul
fsm
package
Version:
v1.4.1
Opens a new window with list of versions in this module.
Published: Jan 23, 2019
License: MPL-2.0
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation Source Files Index Constants Variables Functions Types type FSM New(gc, logOutput) (c) Apply(log) (c) Restore(old) (c) Snapshot() (c) State()
Documentation
¶
FSM implements a finite state machine that is used
along with Raft to provide strong consistency. We implement
this outside the Server to avoid exposing this outside the package.
New is used to construct a new FSM with a blank state.
Restore streams in the snapshot and replaces the current state store with a
new one based on the snapshot if all goes OK during the restore.
State is used to return a handle to the current state
Source Files
¶
Click to show internal directories.
Click to hide internal directories.