libraft-0.1.1.0: Raft consensus algorithm

Safe HaskellNone
LanguageHaskell2010

Raft.Leader

Synopsis

Documentation

handleAppendEntries :: RPCHandler Leader sm (AppendEntries v) v Source #

Leaders should not respond to AppendEntries messages.

handleRequestVote :: RPCHandler Leader sm RequestVote v Source #

Leaders should not respond to RequestVote messages.

handleClientRequest :: Show v => ClientReqHandler Leader sm v Source #

The leader handles all client requests, responding with the current state machine on a client read, and appending an entry to the log on a valid client write.