UNPKG

hamok

Version:

Lightweight Distributed Object Storage on RAFT consensus algorithm

17 lines 766 B
import { HamokMessage } from '../HamokMessage'; export declare class SubmitMessageRequest { readonly requestId: string; readonly sourceEndpointId?: string; readonly entry: HamokMessage; readonly destinationEndpointId?: string; constructor(requetId: string, sourceEndpointId: string, entry: HamokMessage, destinationEndpointId?: string); createResponse(success: boolean, leaderId?: string): SubmitMessageResponse; } export declare class SubmitMessageResponse { readonly requestId: string; readonly success: boolean; readonly destinationEndpointId?: string; readonly leaderId?: string; constructor(requestId: string, success: boolean, destinationId?: string, leaderId?: string); } //# sourceMappingURL=SubmitMessage.d.ts.map