API Reference Imperial v#0.1.0

Copy Markdown View Source

Modules

A replicated state machine.

Represents a RPC AppendEntries request.

Represents a reply to an AppendEntries RPC request.

Represents a RPC InstallSnapshot request, sent by the leader to a follower that needs log entries the leader has already replaced with a snapshot.

Represents a reply to the InstallSnapshot RPC, indicating whether it was successful or not.

Represents a RPC PreVote request. A server asks whether it would win an election before it starts one, so that a server that cannot win does not raise its term. See section 9.6 of the Raft dissertation.

Represents a reply to a RPC PreVote request.

Represents a RPC RequestVote request.

Represents a reply to a RPC RequestVote request.