moonbitstack/moonraft/log does not have a README file
pub suberror LogCompactedpub struct RaftLog {
storage : &RaftStorage
unstable : Unstable
committed : UInt64
applying : UInt64
applied : UInt64
max_applying_ents_size : UInt64
applying_ents_size : UInt64
applying_ents_paused : Bool
}fn RaftLog::async_stabilize_checked(self : RaftLog, index : UInt64, log_term : UInt64) -> StableOutcomefn RaftLog::entries(self : RaftLog, i : UInt64, max_size : UInt64) -> Array[Entry] raise LogCompactedfn RaftLog::must_check_out_of_bounds(self : RaftLog, lo : UInt64, hi : UInt64) -> Unit raise LogCompactedfn RaftLog::slice(self : RaftLog, lo : UInt64, hi : UInt64, max_size : UInt64) -> Array[Entry] raise LogCompactedpub(all) enum StableOutcome {
Stabilized
Missing
MatchedSnapshot
TermMismatch(existing_term~ : UInt64)
}Install
Download zipRaft consensus in MoonBit.