UNPKG

hamok

Version:

Lightweight Distributed Object Storage on RAFT consensus algorithm

29 lines (28 loc) 912 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GetEntriesResponse = exports.GetEntriesRequest = void 0; class GetEntriesRequest { requestId; keys; sourceEndpointId; constructor(keys, requetId, sourceEndpointId) { this.requestId = requetId; this.keys = keys; this.sourceEndpointId = sourceEndpointId; } createResponse(foundEntries) { return new GetEntriesResponse(this.requestId, foundEntries, this.sourceEndpointId); } } exports.GetEntriesRequest = GetEntriesRequest; class GetEntriesResponse { requestId; foundEntries; destinationEndpointId; constructor(requetId, foundEntries, destinationEndpointId) { this.requestId = requetId; this.foundEntries = foundEntries; this.destinationEndpointId = destinationEndpointId; } } exports.GetEntriesResponse = GetEntriesResponse;