libraft-0.5.0.0: Raft consensus algorithm

Safe HaskellNone
LanguageHaskell2010

Raft.Config

Synopsis

Documentation

data RaftNodeConfig Source #

Configuration of a node in the cluster

Constructors

RaftNodeConfig 

Fields

Instances
Show RaftNodeConfig Source # 
Instance details

Defined in Raft.Config

data StorageState Source #

Constructors

New 
Existing 
Instances
Show StorageState Source # 
Instance details

Defined in Raft.Config

resolveMetricsPortE :: PortNumber -> IO (Either ConfigError PortNumber) Source #

If the user specifies a port to fork the EKG server on, make sure the port is open and return the valid port number. If the user does not specify a port to run the monitoring server on, return Nothing.