libraft-0.1.1.0: Raft consensus algorithm

Safe HaskellNone
LanguageHaskell2010

Raft.Handle

Synopsis

Documentation

handleEvent :: forall sm v. (RSMP sm v, Show v) => RaftNodeState -> TransitionEnv sm -> PersistentState -> Event v -> (RaftNodeState, PersistentState, [Action sm v], [LogMsg]) Source #

Main entry point for handling events

mkRaftHandler :: forall ns sm v. Show v => NodeState ns -> RaftHandler ns sm v Source #

handleEvent' :: forall ns sm v. (RSMP sm v, Show v) => NodeState ns -> TransitionEnv sm -> PersistentState -> Event v -> ((ResultState ns, [LogMsg]), PersistentState, [Action sm v]) Source #