nooschain / consensus/adapters/raft/raft-types / RaftMessage
Type Alias: RaftMessage
RaftMessage = {
candidateId:string;clusterId:string;from:string;lastLogIndex:number;lastLogTerm:number;term:number;type:"RequestVote"; } | {clusterId:string;from:string;term:number;type:"RequestVoteResponse";voteGranted:boolean; } | {clusterId:string;entries:RaftLogRecord[];from:string;leaderCommit:number;leaderId:string;prevLogIndex:number;prevLogTerm:number;term:number;type:"AppendEntries"; } | {clusterId:string;from:string;matchIndex:number;success:boolean;term:number;type:"AppendEntriesResponse"; } | {clusterId:string;done:boolean;from:string;lastIncludedIndex:number;lastIncludedTerm:number;leaderId:string;snapshot:SnapshotDocument;term:number;type:"InstallSnapshot"; }
Defined in: consensus/adapters/raft/raft-types.ts:24