UNPKG

hamok

Version:

Lightweight Distributed Object Storage on RAFT consensus algorithm

33 lines (28 loc) 553 B
export type HamokRecordSnapshot = { recordId: string; keys: Uint8Array[]; values: Uint8Array[]; } export type HamokMapSnapshot = { mapId: string; keys: string[]; values: string[]; } export type HamokRemoteMapSnapshot = { mapId: string; appliedCommitIndex: number; } export type HamokQueueSnapshot = { queueId: string; keys: string[]; values: string[]; } export type HamokEmitterSnapshot = { emitterId: string; subscriptions: { event: string; subscribers: { peerId: string, metaData: Record<string, unknown> | null }[]; }[], }