Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
SendRPC NodeId (SendRPCAction v) | Send a message to a specific node id |
SendRPCs (Map NodeId (SendRPCAction v)) | Send a unique message to specific nodes in parallel |
BroadcastRPC NodeIds (SendRPCAction v) | Broadcast the same message to all nodes |
AppendLogEntries (Entries v) | Append entries to the replicated log |
RespondToClient ClientId (ClientResponse sm) | Respond to client after a client request |
ResetTimeoutTimer Timeout | Reset a timeout timer |
Instances
MonadWriter [Action sm v] (TransitionM sm v) Source # | |
Defined in Raft.Monad writer :: (a, [Action sm v]) -> TransitionM sm v a # tell :: [Action sm v] -> TransitionM sm v () # listen :: TransitionM sm v a -> TransitionM sm v (a, [Action sm v]) # pass :: TransitionM sm v (a, [Action sm v] -> [Action sm v]) -> TransitionM sm v a # | |
(Show v, Show sm) => Show (Action sm v) Source # | |
RaftLogger (RWS (TransitionEnv sm) [Action sm v] PersistentState) Source # | |
Defined in Raft.Monad loggerNodeId :: RWS (TransitionEnv sm) [Action sm v] PersistentState NodeId Source # loggerNodeState :: RWS (TransitionEnv sm) [Action sm v] PersistentState RaftNodeState Source # |
data SendRPCAction v Source #
SendAppendEntriesRPC (AppendEntriesData v) | |
SendAppendEntriesResponseRPC AppendEntriesResponse | |
SendRequestVoteRPC RequestVote | |
SendRequestVoteResponseRPC RequestVoteResponse |
Instances
Show v => Show (SendRPCAction v) Source # | |
Defined in Raft.Action showsPrec :: Int -> SendRPCAction v -> ShowS # show :: SendRPCAction v -> String # showList :: [SendRPCAction v] -> ShowS # |