UNPKG

hamok

Version:

Lightweight Distributed Object Storage on RAFT consensus algorithm

27 lines (26 loc) 795 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GetKeysResponse = exports.GetKeysRequest = void 0; class GetKeysRequest { requestId; sourceEndpointId; constructor(requetId, sourceEndpointId) { this.requestId = requetId; this.sourceEndpointId = sourceEndpointId; } createResponse(keys) { return new GetKeysResponse(this.requestId, keys, this.sourceEndpointId); } } exports.GetKeysRequest = GetKeysRequest; class GetKeysResponse { requestId; keys; destinationEndpointId; constructor(requetId, keys, destinationEndpointId) { this.requestId = requetId; this.keys = keys; this.destinationEndpointId = destinationEndpointId; } } exports.GetKeysResponse = GetKeysResponse;