UNPKG

hamok

Version:

Lightweight Distributed Object Storage on RAFT consensus algorithm

31 lines 902 B
export declare class SyncedProperties { /** * latest term server has seen (initialized to 0 * on first boot, increases monotonically) */ currentTerm: number; /** * candidateId that received vote in current * term (or null if none) */ votedFor?: string; /** * index of highest log entry applied to state * machine (initialized to 0, increases * monotonically) */ lastApplied: number; /** * for each server, index of the next log entry * to send to that server (initialized to leader * last log index + 1) */ readonly nextIndex: Map<string, number>; /** * for each server, index of highest log entry * known to be replicated on server * (initialized to 0, increases monotonically) */ readonly matchIndex: Map<string, number>; } //# sourceMappingURL=SyncedProperties.d.ts.map