@streamr/dht 0.0.1-tatum.7 → 0.0.1-tatum.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/connection/ConnectionLockRpcRemote.d.ts +10 -0
- package/dist/src/connection/{RemoteConnectionLocker.js → ConnectionLockRpcRemote.js} +20 -35
- package/dist/src/connection/ConnectionLockRpcRemote.js.map +1 -0
- package/dist/src/connection/ConnectionManager.d.ts +0 -1
- package/dist/src/connection/ConnectionManager.js +27 -25
- package/dist/src/connection/ConnectionManager.js.map +1 -1
- package/dist/src/connection/ConnectivityChecker.js +4 -4
- package/dist/src/connection/ConnectivityChecker.js.map +1 -1
- package/dist/src/connection/ConnectorFacade.d.ts +1 -1
- package/dist/src/connection/ConnectorFacade.js +5 -8
- package/dist/src/connection/ConnectorFacade.js.map +1 -1
- package/dist/src/connection/Handshaker.d.ts +1 -2
- package/dist/src/connection/Handshaker.js +1 -4
- package/dist/src/connection/Handshaker.js.map +1 -1
- package/dist/src/connection/ManagedConnection.d.ts +1 -2
- package/dist/src/connection/ManagedConnection.js +4 -5
- package/dist/src/connection/ManagedConnection.js.map +1 -1
- package/dist/src/connection/ManagedWebRtcConnection.d.ts +1 -1
- package/dist/src/connection/ManagedWebRtcConnection.js +2 -2
- package/dist/src/connection/ManagedWebRtcConnection.js.map +1 -1
- package/dist/src/connection/Simulator/SimulatorConnector.d.ts +1 -2
- package/dist/src/connection/Simulator/SimulatorConnector.js +3 -4
- package/dist/src/connection/Simulator/SimulatorConnector.js.map +1 -1
- package/dist/src/connection/WebRTC/NodeWebRtcConnection.d.ts +1 -1
- package/dist/src/connection/WebRTC/{WebRtcConnector.d.ts → WebRtcConnectorRpcLocal.d.ts} +9 -9
- package/dist/src/connection/WebRTC/{WebRtcConnector.js → WebRtcConnectorRpcLocal.js} +38 -30
- package/dist/src/connection/WebRTC/WebRtcConnectorRpcLocal.js.map +1 -0
- package/dist/src/connection/WebRTC/WebRtcConnectorRpcRemote.d.ts +11 -0
- package/dist/src/connection/WebRTC/WebRtcConnectorRpcRemote.js +55 -0
- package/dist/src/connection/WebRTC/WebRtcConnectorRpcRemote.js.map +1 -0
- package/dist/src/connection/WebRTC/iceServerAsString.d.ts +1 -1
- package/dist/src/connection/WebSocket/{WebSocketConnector.d.ts → WebSocketConnectorRpcLocal.d.ts} +6 -7
- package/dist/src/connection/WebSocket/{WebSocketConnector.js → WebSocketConnectorRpcLocal.js} +20 -20
- package/dist/src/connection/WebSocket/WebSocketConnectorRpcLocal.js.map +1 -0
- package/dist/src/connection/WebSocket/WebSocketConnectorRpcRemote.d.ts +8 -0
- package/dist/src/connection/WebSocket/{RemoteWebSocketConnector.js → WebSocketConnectorRpcRemote.js} +11 -16
- package/dist/src/connection/WebSocket/WebSocketConnectorRpcRemote.js.map +1 -0
- package/dist/src/dht/DhtNode.d.ts +6 -7
- package/dist/src/dht/DhtNode.js +22 -23
- package/dist/src/dht/DhtNode.js.map +1 -1
- package/dist/src/dht/{RemoteExternalApi.d.ts → ExternalApiRpcRemote.d.ts} +2 -2
- package/dist/src/dht/{RemoteExternalApi.js → ExternalApiRpcRemote.js} +5 -6
- package/dist/src/dht/ExternalApiRpcRemote.js.map +1 -0
- package/dist/src/dht/discovery/PeerDiscovery.d.ts +1 -1
- package/dist/src/dht/discovery/PeerDiscovery.js +3 -2
- package/dist/src/dht/discovery/PeerDiscovery.js.map +1 -1
- package/dist/src/dht/find/RecursiveFindSession.d.ts +5 -5
- package/dist/src/dht/find/RecursiveFindSession.js +7 -7
- package/dist/src/dht/find/RecursiveFindSession.js.map +1 -1
- package/dist/src/dht/find/RecursiveFinder.d.ts +7 -7
- package/dist/src/dht/find/RecursiveFinder.js +24 -24
- package/dist/src/dht/find/RecursiveFinder.js.map +1 -1
- package/dist/src/dht/find/RemoteRecursiveFindSession.d.ts +1 -1
- package/dist/src/dht/find/RemoteRecursiveFindSession.js +4 -4
- package/dist/src/dht/find/RemoteRecursiveFindSession.js.map +1 -1
- package/dist/src/dht/registerExternalApiRpcMethods.js +4 -3
- package/dist/src/dht/registerExternalApiRpcMethods.js.map +1 -1
- package/dist/src/dht/routing/Router.d.ts +2 -2
- package/dist/src/dht/routing/Router.js +2 -4
- package/dist/src/dht/routing/Router.js.map +1 -1
- package/dist/src/dht/routing/{RemoteRouter.d.ts → RouterRpcRemote.d.ts} +2 -2
- package/dist/src/dht/routing/{RemoteRouter.js → RouterRpcRemote.js} +4 -4
- package/dist/src/dht/routing/RouterRpcRemote.js.map +1 -0
- package/dist/src/dht/routing/RoutingSession.js +2 -2
- package/dist/src/dht/routing/RoutingSession.js.map +1 -1
- package/dist/src/dht/store/{DataStore.d.ts → StoreRpcLocal.d.ts} +4 -4
- package/dist/src/dht/store/{DataStore.js → StoreRpcLocal.js} +27 -27
- package/dist/src/dht/store/StoreRpcLocal.js.map +1 -0
- package/dist/src/dht/store/{RemoteStore.d.ts → StoreRpcRemote.d.ts} +2 -2
- package/dist/src/dht/store/{RemoteStore.js → StoreRpcRemote.js} +4 -4
- package/dist/src/dht/store/StoreRpcRemote.js.map +1 -0
- package/dist/src/exports.d.ts +1 -1
- package/dist/src/helpers/protoClasses.js +2 -2
- package/dist/src/helpers/protoClasses.js.map +1 -1
- package/dist/src/proto/packages/dht/protos/DhtRpc.client.d.ts +29 -29
- package/dist/src/proto/packages/dht/protos/DhtRpc.client.js +39 -39
- package/dist/src/proto/packages/dht/protos/DhtRpc.client.js.map +1 -1
- package/dist/src/proto/packages/dht/protos/DhtRpc.d.ts +49 -158
- package/dist/src/proto/packages/dht/protos/DhtRpc.js +46 -86
- package/dist/src/proto/packages/dht/protos/DhtRpc.js.map +1 -1
- package/dist/src/proto/packages/dht/protos/DhtRpc.server.d.ts +15 -15
- package/dist/src/transport/RoutingRpcCommunicator.js +1 -0
- package/dist/src/transport/RoutingRpcCommunicator.js.map +1 -1
- package/package.json +4 -4
- package/protos/DhtRpc.proto +30 -59
- package/src/connection/ConnectionLockRpcRemote.ts +62 -0
- package/src/connection/ConnectionManager.ts +33 -32
- package/src/connection/ConnectivityChecker.ts +1 -1
- package/src/connection/ConnectorFacade.ts +7 -10
- package/src/connection/Handshaker.ts +0 -5
- package/src/connection/ManagedConnection.ts +3 -6
- package/src/connection/ManagedWebRtcConnection.ts +0 -2
- package/src/connection/Simulator/SimulatorConnector.ts +2 -7
- package/src/connection/WebRTC/NodeWebRtcConnection.ts +1 -1
- package/src/connection/WebRTC/{WebRtcConnector.ts → WebRtcConnectorRpcLocal.ts} +46 -34
- package/src/connection/WebRTC/WebRtcConnectorRpcRemote.ts +71 -0
- package/src/connection/WebRTC/iceServerAsString.ts +1 -1
- package/src/connection/WebSocket/{WebSocketConnector.ts → WebSocketConnectorRpcLocal.ts} +26 -26
- package/src/connection/WebSocket/{RemoteWebSocketConnector.ts → WebSocketConnectorRpcRemote.ts} +13 -18
- package/src/dht/DhtNode.ts +32 -33
- package/src/dht/{RemoteExternalApi.ts → ExternalApiRpcRemote.ts} +3 -4
- package/src/dht/discovery/PeerDiscovery.ts +4 -3
- package/src/dht/find/RecursiveFindSession.ts +11 -11
- package/src/dht/find/RecursiveFinder.ts +29 -30
- package/src/dht/find/RemoteRecursiveFindSession.ts +6 -6
- package/src/dht/registerExternalApiRpcMethods.ts +7 -4
- package/src/dht/routing/Router.ts +4 -6
- package/src/dht/routing/{RemoteRouter.ts → RouterRpcRemote.ts} +2 -2
- package/src/dht/routing/RoutingSession.ts +6 -6
- package/src/dht/store/{DataStore.ts → StoreRpcLocal.ts} +31 -31
- package/src/dht/store/{RemoteStore.ts → StoreRpcRemote.ts} +2 -2
- package/src/exports.ts +1 -1
- package/src/helpers/protoClasses.ts +4 -4
- package/src/proto/packages/dht/protos/DhtRpc.client.ts +54 -54
- package/src/proto/packages/dht/protos/DhtRpc.server.ts +15 -15
- package/src/proto/packages/dht/protos/DhtRpc.ts +76 -210
- package/src/transport/RoutingRpcCommunicator.ts +1 -0
- package/test/integration/{RemoteRouter.test.ts → RouterRpcRemote.test.ts} +8 -8
- package/test/integration/{RemoteStore.test.ts → StoreRpcRemote.test.ts} +13 -13
- package/test/integration/WebRtcConnectorRpc.test.ts +11 -24
- package/test/integration/WebSocketConnectorRpc.test.ts +8 -12
- package/test/unit/RecursiveFinder.test.ts +5 -6
- package/test/unit/{WebSocketConnector.test.ts → WebSocketConnectorRpcLocal.test.ts} +3 -3
- package/test/unit/webrtcReplaceInternalIpWithExternalIp.test.ts +1 -1
- package/test/utils/utils.ts +16 -26
- package/dist/src/connection/RemoteConnectionLocker.d.ts +0 -13
- package/dist/src/connection/RemoteConnectionLocker.js.map +0 -1
- package/dist/src/connection/WebRTC/RemoteWebrtcConnector.d.ts +0 -12
- package/dist/src/connection/WebRTC/RemoteWebrtcConnector.js +0 -74
- package/dist/src/connection/WebRTC/RemoteWebrtcConnector.js.map +0 -1
- package/dist/src/connection/WebRTC/WebRtcConnector.js.map +0 -1
- package/dist/src/connection/WebSocket/RemoteWebSocketConnector.d.ts +0 -9
- package/dist/src/connection/WebSocket/RemoteWebSocketConnector.js.map +0 -1
- package/dist/src/connection/WebSocket/WebSocketConnector.js.map +0 -1
- package/dist/src/dht/RemoteExternalApi.js.map +0 -1
- package/dist/src/dht/routing/RemoteRouter.js.map +0 -1
- package/dist/src/dht/store/DataStore.js.map +0 -1
- package/dist/src/dht/store/RemoteStore.js.map +0 -1
- package/src/connection/RemoteConnectionLocker.ts +0 -85
- package/src/connection/WebRTC/RemoteWebrtcConnector.ts +0 -93
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.StoreRpcLocal = void 0;
|
|
4
4
|
const DhtRpc_1 = require("../../proto/packages/dht/protos/DhtRpc");
|
|
5
5
|
const PeerID_1 = require("../../helpers/PeerID");
|
|
6
6
|
const proto_rpc_1 = require("@streamr/proto-rpc");
|
|
7
7
|
const DhtRpc_client_1 = require("../../proto/packages/dht/protos/DhtRpc.client");
|
|
8
8
|
const peerIdFromPeerDescriptor_1 = require("../../helpers/peerIdFromPeerDescriptor");
|
|
9
9
|
const utils_1 = require("@streamr/utils");
|
|
10
|
-
const
|
|
10
|
+
const StoreRpcRemote_1 = require("./StoreRpcRemote");
|
|
11
11
|
const timestamp_1 = require("../../proto/google/protobuf/timestamp");
|
|
12
12
|
const SortedContactList_1 = require("../contact/SortedContactList");
|
|
13
13
|
const Contact_1 = require("../contact/Contact");
|
|
14
14
|
const logger = new utils_1.Logger(module);
|
|
15
|
-
class
|
|
15
|
+
class StoreRpcLocal {
|
|
16
16
|
constructor(config) {
|
|
17
17
|
this.rpcCommunicator = config.rpcCommunicator;
|
|
18
18
|
this.recursiveFinder = config.recursiveFinder;
|
|
@@ -21,7 +21,7 @@ class DataStore {
|
|
|
21
21
|
this.serviceId = config.serviceId;
|
|
22
22
|
this.maxTtl = config.maxTtl;
|
|
23
23
|
this.highestTtl = config.highestTtl;
|
|
24
|
-
this.
|
|
24
|
+
this.redundancyFactor = config.redundancyFactor;
|
|
25
25
|
this.dhtNodeEmitter = config.dhtNodeEmitter;
|
|
26
26
|
this.getNodesClosestToIdFromBucket = config.getNodesClosestToIdFromBucket;
|
|
27
27
|
this.rpcCommunicator.registerRpcMethod(DhtRpc_1.StoreDataRequest, DhtRpc_1.StoreDataResponse, 'storeData', (request, context) => this.storeData(request, context));
|
|
@@ -62,9 +62,9 @@ class DataStore {
|
|
|
62
62
|
break;
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
// if new node is within the
|
|
65
|
+
// if new node is within the storageRedundancyFactor closest nodes to the data
|
|
66
66
|
// do migrate data to it
|
|
67
|
-
if (index < this.
|
|
67
|
+
if (index < this.redundancyFactor) {
|
|
68
68
|
this.localDataStore.setStale(dataId, dataEntry.storer, false);
|
|
69
69
|
return true;
|
|
70
70
|
}
|
|
@@ -74,15 +74,15 @@ class DataStore {
|
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
async migrateDataToContact(dataEntry, contact, doNotConnect = false) {
|
|
77
|
-
const
|
|
77
|
+
const rpcRemote = new StoreRpcRemote_1.StoreRpcRemote(this.ownPeerDescriptor, contact, this.serviceId, (0, proto_rpc_1.toProtoRpcClient)(new DhtRpc_client_1.StoreRpcClient(this.rpcCommunicator.getRpcClientTransport())));
|
|
78
78
|
try {
|
|
79
|
-
const response = await
|
|
79
|
+
const response = await rpcRemote.migrateData({ dataEntry }, doNotConnect);
|
|
80
80
|
if (response.error) {
|
|
81
|
-
logger.trace('
|
|
81
|
+
logger.trace('migrateData() returned error: ' + response.error);
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
catch (e) {
|
|
85
|
-
logger.trace('
|
|
85
|
+
logger.trace('migrateData() threw an exception ' + e);
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
async storeDataToDht(key, data) {
|
|
@@ -92,7 +92,7 @@ class DataStore {
|
|
|
92
92
|
const successfulNodes = [];
|
|
93
93
|
const ttl = this.highestTtl; // ToDo: make TTL decrease according to some nice curve
|
|
94
94
|
const storerTime = timestamp_1.Timestamp.now();
|
|
95
|
-
for (let i = 0; i < closestNodes.length && successfulNodes.length < this.
|
|
95
|
+
for (let i = 0; i < closestNodes.length && successfulNodes.length < this.redundancyFactor; i++) {
|
|
96
96
|
if ((0, peerIdFromPeerDescriptor_1.areEqualPeerDescriptors)(this.ownPeerDescriptor, closestNodes[i])) {
|
|
97
97
|
this.localDataStore.storeEntry({
|
|
98
98
|
kademliaId: key,
|
|
@@ -107,27 +107,27 @@ class DataStore {
|
|
|
107
107
|
successfulNodes.push(closestNodes[i]);
|
|
108
108
|
continue;
|
|
109
109
|
}
|
|
110
|
-
const
|
|
110
|
+
const rpcRemote = new StoreRpcRemote_1.StoreRpcRemote(this.ownPeerDescriptor, closestNodes[i], this.serviceId, (0, proto_rpc_1.toProtoRpcClient)(new DhtRpc_client_1.StoreRpcClient(this.rpcCommunicator.getRpcClientTransport())));
|
|
111
111
|
try {
|
|
112
|
-
const response = await
|
|
112
|
+
const response = await rpcRemote.storeData({ kademliaId: key, data, ttl, storerTime });
|
|
113
113
|
if (!response.error) {
|
|
114
114
|
successfulNodes.push(closestNodes[i]);
|
|
115
|
-
logger.trace('
|
|
115
|
+
logger.trace('remote.storeData() returned success');
|
|
116
116
|
}
|
|
117
117
|
else {
|
|
118
|
-
logger.trace('
|
|
118
|
+
logger.trace('remote.storeData() returned error: ' + response.error);
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
catch (e) {
|
|
122
|
-
logger.trace('
|
|
122
|
+
logger.trace('remote.storeData() threw an exception ' + e);
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
return successfulNodes;
|
|
126
126
|
}
|
|
127
127
|
selfIsOneOfClosestPeers(dataId) {
|
|
128
128
|
const ownPeerId = PeerID_1.PeerID.fromValue(this.ownPeerDescriptor.kademliaId);
|
|
129
|
-
const closestPeers = this.getNodesClosestToIdFromBucket(dataId, this.
|
|
130
|
-
const sortedList = new SortedContactList_1.SortedContactList(ownPeerId, this.
|
|
129
|
+
const closestPeers = this.getNodesClosestToIdFromBucket(dataId, this.redundancyFactor);
|
|
130
|
+
const sortedList = new SortedContactList_1.SortedContactList(ownPeerId, this.redundancyFactor, undefined, true);
|
|
131
131
|
sortedList.addContact(new Contact_1.Contact(this.ownPeerDescriptor));
|
|
132
132
|
closestPeers.forEach((con) => sortedList.addContact(new Contact_1.Contact(con.getPeerDescriptor())));
|
|
133
133
|
return sortedList.getClosestContacts().some((node) => node.getPeerId().equals(ownPeerId));
|
|
@@ -137,17 +137,17 @@ class DataStore {
|
|
|
137
137
|
const result = await this.recursiveFinder.startRecursiveFind(key);
|
|
138
138
|
const closestNodes = result.closestNodes;
|
|
139
139
|
const successfulNodes = [];
|
|
140
|
-
for (let i = 0; i < closestNodes.length && successfulNodes.length < this.
|
|
140
|
+
for (let i = 0; i < closestNodes.length && successfulNodes.length < this.redundancyFactor; i++) {
|
|
141
141
|
if ((0, peerIdFromPeerDescriptor_1.areEqualPeerDescriptors)(this.ownPeerDescriptor, closestNodes[i])) {
|
|
142
142
|
this.localDataStore.markAsDeleted(key, (0, peerIdFromPeerDescriptor_1.peerIdFromPeerDescriptor)(this.ownPeerDescriptor));
|
|
143
143
|
successfulNodes.push(closestNodes[i]);
|
|
144
144
|
continue;
|
|
145
145
|
}
|
|
146
|
-
const
|
|
146
|
+
const rpcRemote = new StoreRpcRemote_1.StoreRpcRemote(this.ownPeerDescriptor, closestNodes[i], this.serviceId, (0, proto_rpc_1.toProtoRpcClient)(new DhtRpc_client_1.StoreRpcClient(this.rpcCommunicator.getRpcClientTransport())));
|
|
147
147
|
try {
|
|
148
|
-
const response = await
|
|
148
|
+
const response = await rpcRemote.deleteData({ kademliaId: key });
|
|
149
149
|
if (response.deleted) {
|
|
150
|
-
logger.trace('
|
|
150
|
+
logger.trace('remote.deleteData() returned success');
|
|
151
151
|
}
|
|
152
152
|
else {
|
|
153
153
|
logger.trace('could not delete data from ' + (0, peerIdFromPeerDescriptor_1.keyFromPeerDescriptor)(closestNodes[i]));
|
|
@@ -155,7 +155,7 @@ class DataStore {
|
|
|
155
155
|
successfulNodes.push(closestNodes[i]);
|
|
156
156
|
}
|
|
157
157
|
catch (e) {
|
|
158
|
-
logger.trace('
|
|
158
|
+
logger.trace('remote.deleteData() threw an exception ' + e);
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
}
|
|
@@ -207,7 +207,7 @@ class DataStore {
|
|
|
207
207
|
const dataId = PeerID_1.PeerID.fromValue(dataEntry.kademliaId);
|
|
208
208
|
const incomingPeerId = PeerID_1.PeerID.fromValue(incomingPeer.kademliaId);
|
|
209
209
|
const closestToData = this.getNodesClosestToIdFromBucket(dataEntry.kademliaId, 10);
|
|
210
|
-
const sortedList = new SortedContactList_1.SortedContactList(dataId, this.
|
|
210
|
+
const sortedList = new SortedContactList_1.SortedContactList(dataId, this.redundancyFactor, undefined, true);
|
|
211
211
|
sortedList.addContact(new Contact_1.Contact(this.ownPeerDescriptor));
|
|
212
212
|
closestToData.forEach((con) => {
|
|
213
213
|
sortedList.addContact(new Contact_1.Contact(con.getPeerDescriptor()));
|
|
@@ -230,7 +230,7 @@ class DataStore {
|
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
232
|
else {
|
|
233
|
-
// if we are the closest to the data, migrate to all
|
|
233
|
+
// if we are the closest to the data, migrate to all storageRedundancyFactor nearest
|
|
234
234
|
sortedList.getAllContacts().forEach((contact) => {
|
|
235
235
|
const contactPeerId = PeerID_1.PeerID.fromValue(contact.getPeerDescriptor().kademliaId);
|
|
236
236
|
if (!incomingPeerId.equals(contactPeerId) && !ownPeerId.equals(contactPeerId)) {
|
|
@@ -250,5 +250,5 @@ class DataStore {
|
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
252
|
}
|
|
253
|
-
exports.
|
|
254
|
-
//# sourceMappingURL=
|
|
253
|
+
exports.StoreRpcLocal = StoreRpcLocal;
|
|
254
|
+
//# sourceMappingURL=StoreRpcLocal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StoreRpcLocal.js","sourceRoot":"","sources":["../../../../src/dht/store/StoreRpcLocal.ts"],"names":[],"mappings":";;;AAAA,mEAG+C;AAC/C,iDAA6C;AAI7C,kDAAqD;AACrD,iFAA8E;AAG9E,qFAAiI;AACjI,0CAAuC;AAGvC,qDAAiD;AACjD,qEAAiE;AAGjE,oEAAgE;AAChE,gDAA4C;AAgB5C,MAAM,MAAM,GAAG,IAAI,cAAM,CAAC,MAAM,CAAC,CAAA;AAEjC,MAAa,aAAa;IAatB,YAAY,MAAuB;QAC/B,IAAI,CAAC,eAAe,GAAG,MAAM,CAAC,eAAe,CAAA;QAC7C,IAAI,CAAC,eAAe,GAAG,MAAM,CAAC,eAAe,CAAA;QAC7C,IAAI,CAAC,iBAAiB,GAAG,MAAM,CAAC,iBAAiB,CAAA;QACjD,IAAI,CAAC,cAAc,GAAG,MAAM,CAAC,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AO,CAAC,EAAE;wBACR,MAAM,CAAC,KAAK,CAAC,oDAAoD,GAAG,CAAC,CAAC,CAAA;qBACzE;gBACL,CAAC,CAAC,CAAA;aACL;SACJ;aAAM;YACH,oFAAoF;YACpF,UAAU,CAAC,cAAc,EAAE,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;gBAC5C,MAAM,aAAa,GAAG,eAAM,CAAC,SAAS,CAAC,OAAO,CAAC,iBAAiB,EAAE,CAAC,UAAU,CAAC,CAAA;gBAC9E,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE;oBAC3E,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE;wBAC3E,YAAY,CAAC,KAAK,IAAI,EAAE;4BACpB,IAAI;gCACA,MAAM,IAAI,CAAC,oBAAoB,CAAC,SAAS,EAAE,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAAA;gCACvE,MAAM,CAAC,KAAK,CAAC,iCAAiC,CAAC,CAAA;6BAClD;4BAAC,OAAO,CAAC,EAAE;gCACR,MAAM,CAAC,KAAK,CAAC,uDAAuD,GAAG,CAAC,CAAC,CAAA;6BAC5E;wBACL,CAAC,CAAC,CAAA;qBACL;iBACJ;YACL,CAAC,CAAC,CAAA;SACL;IACL,CAAC;CACJ;AAhSD,sCAgSC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Remote } from '../contact/Remote';
|
|
2
|
-
import {
|
|
2
|
+
import { IStoreRpcClient } from '../../proto/packages/dht/protos/DhtRpc.client';
|
|
3
3
|
import { DeleteDataRequest, DeleteDataResponse, MigrateDataRequest, MigrateDataResponse, StoreDataRequest, StoreDataResponse } from '../../proto/packages/dht/protos/DhtRpc';
|
|
4
|
-
export declare class
|
|
4
|
+
export declare class StoreRpcRemote extends Remote<IStoreRpcClient> {
|
|
5
5
|
storeData(request: StoreDataRequest): Promise<StoreDataResponse>;
|
|
6
6
|
deleteData(request: DeleteDataRequest): Promise<DeleteDataResponse>;
|
|
7
7
|
migrateData(request: MigrateDataRequest, doNotConnect?: boolean): Promise<MigrateDataResponse>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.StoreRpcRemote = void 0;
|
|
4
4
|
const Remote_1 = require("../contact/Remote");
|
|
5
5
|
const peerIdFromPeerDescriptor_1 = require("../../helpers/peerIdFromPeerDescriptor");
|
|
6
|
-
class
|
|
6
|
+
class StoreRpcRemote extends Remote_1.Remote {
|
|
7
7
|
async storeData(request) {
|
|
8
8
|
const options = this.formDhtRpcOptions({
|
|
9
9
|
timeout: 10000
|
|
@@ -36,5 +36,5 @@ class RemoteStore extends Remote_1.Remote {
|
|
|
36
36
|
return this.getClient().migrateData(request, options);
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
-
exports.
|
|
40
|
-
//# sourceMappingURL=
|
|
39
|
+
exports.StoreRpcRemote = StoreRpcRemote;
|
|
40
|
+
//# sourceMappingURL=StoreRpcRemote.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StoreRpcRemote.js","sourceRoot":"","sources":["../../../../src/dht/store/StoreRpcRemote.ts"],"names":[],"mappings":";;;AAAA,8CAA0C;AAU1C,qFAA8E;AAE9E,MAAa,cAAe,SAAQ,eAAuB;IAEvD,KAAK,CAAC,SAAS,CAAC,OAAyB;QACrC,MAAM,OAAO,GAAG,IAAI,CAAC,iBAAiB,CAAC;YACnC,OAAO,EAAE,KAAK;SACjB,CAAC,CAAA;QACF,IAAI;YACA,OAAO,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC,CAAA;SAC5D;QAAC,OAAO,GAAG,EAAE;YACV,MAAM,EAAE,GAAG,IAAA,gDAAqB,EAAC,IAAI,CAAC,iBAAiB,EAAE,CAAC,CAAA;YAC1D,MAAM,IAAI,GAAG,IAAA,gDAAqB,EAAC,IAAI,CAAC,sBAAsB,EAAE,CAAC,CAAA;YACjE,MAAM,KAAK,CACP,2BAA2B,EAAE,SAAS,IAAI,IAAI,GAAG,EAAE,CACtD,CAAA;SACJ;IACL,CAAC;IAED,KAAK,CAAC,UAAU,CAAC,OAA0B;QACvC,MAAM,OAAO,GAAG,IAAI,CAAC,iBAAiB,CAAC;YACnC,OAAO,EAAE,KAAK;SACjB,CAAC,CAAA;QACF,IAAI;YACA,OAAO,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,OAAO,CAAC,CAAA;SAC7D;QAAC,OAAO,GAAG,EAAE;YACV,MAAM,KAAK,CACP,iCAAiC,IAAA,gDAAqB,EAAC,IAAI,CAAC,iBAAiB,EAAE,CAAC,IAAI,GAAG,EAAE,CAC5F,CAAA;SACJ;IACL,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,OAA2B,EAAE,eAAwB,KAAK;QACxE,MAAM,OAAO,GAAG,IAAI,CAAC,iBAAiB,CAAC;YACnC,OAAO,EAAE,KAAK;YACd,YAAY;SACf,CAAC,CAAA;QACF,OAAO,IAAI,CAAC,SAAS,EAAE,CAAC,WAAW,CAAC,OAAO,EAAE,OAAO,CAAC,CAAA;IACzD,CAAC;CAEJ;AAtCD,wCAsCC"}
|
package/dist/src/exports.d.ts
CHANGED
|
@@ -9,5 +9,5 @@ export { ConnectionManager, ConnectionLocker, PortRange, TlsCertificate } from '
|
|
|
9
9
|
export { DhtRpcOptions } from './rpc-protocol/DhtRpcOptions';
|
|
10
10
|
export { Remote } from './dht/contact/Remote';
|
|
11
11
|
export { areEqualPeerDescriptors } from './helpers/peerIdFromPeerDescriptor';
|
|
12
|
-
export { IceServer } from './connection/WebRTC/
|
|
12
|
+
export { IceServer } from './connection/WebRTC/WebRtcConnectorRpcLocal';
|
|
13
13
|
export { DhtCallContext } from './rpc-protocol/DhtCallContext';
|
|
@@ -5,8 +5,8 @@ const DhtRpc_1 = require("../proto/packages/dht/protos/DhtRpc");
|
|
|
5
5
|
exports.protoClasses = [
|
|
6
6
|
DhtRpc_1.ClosestPeersRequest,
|
|
7
7
|
DhtRpc_1.ClosestPeersResponse,
|
|
8
|
-
DhtRpc_1.
|
|
9
|
-
DhtRpc_1.
|
|
8
|
+
DhtRpc_1.FindRequest,
|
|
9
|
+
DhtRpc_1.FindResponse,
|
|
10
10
|
DhtRpc_1.PingRequest,
|
|
11
11
|
DhtRpc_1.PingResponse,
|
|
12
12
|
DhtRpc_1.LeaveNotice,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protoClasses.js","sourceRoot":"","sources":["../../../src/helpers/protoClasses.ts"],"names":[],"mappings":";;;AACA,gEA4B4C;AAE/B,QAAA,YAAY,GAA6B;IAClD,4BAAmB;IACnB,6BAAoB;IACpB,
|
|
1
|
+
{"version":3,"file":"protoClasses.js","sourceRoot":"","sources":["../../../src/helpers/protoClasses.ts"],"names":[],"mappings":";;;AACA,gEA4B4C;AAE/B,QAAA,YAAY,GAA6B;IAClD,4BAAmB;IACnB,6BAAoB;IACpB,oBAAW;IACX,qBAAY;IACZ,oBAAW;IACX,qBAAY;IACZ,oBAAW;IACX,uBAAc;IACd,2BAAkB;IAClB,yBAAgB;IAChB,4BAAmB;IACnB,wBAAe;IACf,4BAAmB;IACnB,6BAAoB;IACpB,yBAAgB;IAChB,0BAAiB;IACjB,gBAAO;IACP,mCAA0B;IAC1B,oCAA2B;IAC3B,gCAAuB;IACvB,iBAAQ;IACR,kBAAS;IACT,qBAAY;IACZ,oBAAW;IACX,sBAAa;IACb,qBAAY;CACf,CAAA"}
|
|
@@ -13,7 +13,7 @@ import type { RtcOffer } from "./DhtRpc";
|
|
|
13
13
|
import type { WebRtcConnectionRequest } from "./DhtRpc";
|
|
14
14
|
import type { WebSocketConnectionResponse } from "./DhtRpc";
|
|
15
15
|
import type { WebSocketConnectionRequest } from "./DhtRpc";
|
|
16
|
-
import type {
|
|
16
|
+
import type { FindResponse } from "./DhtRpc";
|
|
17
17
|
import type { DeleteDataResponse } from "./DhtRpc";
|
|
18
18
|
import type { DeleteDataRequest } from "./DhtRpc";
|
|
19
19
|
import type { MigrateDataResponse } from "./DhtRpc";
|
|
@@ -74,9 +74,9 @@ export declare class DhtRpcServiceClient implements IDhtRpcServiceClient, Servic
|
|
|
74
74
|
leaveNotice(input: LeaveNotice, options?: RpcOptions): UnaryCall<LeaveNotice, Empty>;
|
|
75
75
|
}
|
|
76
76
|
/**
|
|
77
|
-
* @generated from protobuf service dht.
|
|
77
|
+
* @generated from protobuf service dht.RouterRpc
|
|
78
78
|
*/
|
|
79
|
-
export interface
|
|
79
|
+
export interface IRouterRpcClient {
|
|
80
80
|
/**
|
|
81
81
|
* @generated from protobuf rpc: routeMessage(dht.RouteMessageWrapper) returns (dht.RouteMessageAck);
|
|
82
82
|
*/
|
|
@@ -91,9 +91,9 @@ export interface IRoutingServiceClient {
|
|
|
91
91
|
findRecursively(input: RouteMessageWrapper, options?: RpcOptions): UnaryCall<RouteMessageWrapper, RouteMessageAck>;
|
|
92
92
|
}
|
|
93
93
|
/**
|
|
94
|
-
* @generated from protobuf service dht.
|
|
94
|
+
* @generated from protobuf service dht.RouterRpc
|
|
95
95
|
*/
|
|
96
|
-
export declare class
|
|
96
|
+
export declare class RouterRpcClient implements IRouterRpcClient, ServiceInfo {
|
|
97
97
|
private readonly _transport;
|
|
98
98
|
typeName: string;
|
|
99
99
|
methods: import("@protobuf-ts/runtime-rpc").MethodInfo<any, any>[];
|
|
@@ -115,9 +115,9 @@ export declare class RoutingServiceClient implements IRoutingServiceClient, Serv
|
|
|
115
115
|
findRecursively(input: RouteMessageWrapper, options?: RpcOptions): UnaryCall<RouteMessageWrapper, RouteMessageAck>;
|
|
116
116
|
}
|
|
117
117
|
/**
|
|
118
|
-
* @generated from protobuf service dht.
|
|
118
|
+
* @generated from protobuf service dht.StoreRpc
|
|
119
119
|
*/
|
|
120
|
-
export interface
|
|
120
|
+
export interface IStoreRpcClient {
|
|
121
121
|
/**
|
|
122
122
|
* @generated from protobuf rpc: storeData(dht.StoreDataRequest) returns (dht.StoreDataResponse);
|
|
123
123
|
*/
|
|
@@ -132,9 +132,9 @@ export interface IStoreServiceClient {
|
|
|
132
132
|
deleteData(input: DeleteDataRequest, options?: RpcOptions): UnaryCall<DeleteDataRequest, DeleteDataResponse>;
|
|
133
133
|
}
|
|
134
134
|
/**
|
|
135
|
-
* @generated from protobuf service dht.
|
|
135
|
+
* @generated from protobuf service dht.StoreRpc
|
|
136
136
|
*/
|
|
137
|
-
export declare class
|
|
137
|
+
export declare class StoreRpcClient implements IStoreRpcClient, ServiceInfo {
|
|
138
138
|
private readonly _transport;
|
|
139
139
|
typeName: string;
|
|
140
140
|
methods: import("@protobuf-ts/runtime-rpc").MethodInfo<any, any>[];
|
|
@@ -160,9 +160,9 @@ export declare class StoreServiceClient implements IStoreServiceClient, ServiceI
|
|
|
160
160
|
*/
|
|
161
161
|
export interface IRecursiveFindSessionServiceClient {
|
|
162
162
|
/**
|
|
163
|
-
* @generated from protobuf rpc:
|
|
163
|
+
* @generated from protobuf rpc: sendFindResponse(dht.FindResponse) returns (google.protobuf.Empty);
|
|
164
164
|
*/
|
|
165
|
-
|
|
165
|
+
sendFindResponse(input: FindResponse, options?: RpcOptions): UnaryCall<FindResponse, Empty>;
|
|
166
166
|
}
|
|
167
167
|
/**
|
|
168
168
|
* @generated from protobuf service dht.RecursiveFindSessionService
|
|
@@ -176,23 +176,23 @@ export declare class RecursiveFindSessionServiceClient implements IRecursiveFind
|
|
|
176
176
|
};
|
|
177
177
|
constructor(_transport: RpcTransport);
|
|
178
178
|
/**
|
|
179
|
-
* @generated from protobuf rpc:
|
|
179
|
+
* @generated from protobuf rpc: sendFindResponse(dht.FindResponse) returns (google.protobuf.Empty);
|
|
180
180
|
*/
|
|
181
|
-
|
|
181
|
+
sendFindResponse(input: FindResponse, options?: RpcOptions): UnaryCall<FindResponse, Empty>;
|
|
182
182
|
}
|
|
183
183
|
/**
|
|
184
|
-
* @generated from protobuf service dht.
|
|
184
|
+
* @generated from protobuf service dht.WebSocketConnectorRpc
|
|
185
185
|
*/
|
|
186
|
-
export interface
|
|
186
|
+
export interface IWebSocketConnectorRpcClient {
|
|
187
187
|
/**
|
|
188
188
|
* @generated from protobuf rpc: requestConnection(dht.WebSocketConnectionRequest) returns (dht.WebSocketConnectionResponse);
|
|
189
189
|
*/
|
|
190
190
|
requestConnection(input: WebSocketConnectionRequest, options?: RpcOptions): UnaryCall<WebSocketConnectionRequest, WebSocketConnectionResponse>;
|
|
191
191
|
}
|
|
192
192
|
/**
|
|
193
|
-
* @generated from protobuf service dht.
|
|
193
|
+
* @generated from protobuf service dht.WebSocketConnectorRpc
|
|
194
194
|
*/
|
|
195
|
-
export declare class
|
|
195
|
+
export declare class WebSocketConnectorRpcClient implements IWebSocketConnectorRpcClient, ServiceInfo {
|
|
196
196
|
private readonly _transport;
|
|
197
197
|
typeName: string;
|
|
198
198
|
methods: import("@protobuf-ts/runtime-rpc").MethodInfo<any, any>[];
|
|
@@ -206,9 +206,9 @@ export declare class WebSocketConnectorServiceClient implements IWebSocketConnec
|
|
|
206
206
|
requestConnection(input: WebSocketConnectionRequest, options?: RpcOptions): UnaryCall<WebSocketConnectionRequest, WebSocketConnectionResponse>;
|
|
207
207
|
}
|
|
208
208
|
/**
|
|
209
|
-
* @generated from protobuf service dht.
|
|
209
|
+
* @generated from protobuf service dht.WebRtcConnectorRpc
|
|
210
210
|
*/
|
|
211
|
-
export interface
|
|
211
|
+
export interface IWebRtcConnectorRpcClient {
|
|
212
212
|
/**
|
|
213
213
|
* @generated from protobuf rpc: requestConnection(dht.WebRtcConnectionRequest) returns (google.protobuf.Empty);
|
|
214
214
|
*/
|
|
@@ -227,9 +227,9 @@ export interface IWebRtcConnectorServiceClient {
|
|
|
227
227
|
iceCandidate(input: IceCandidate, options?: RpcOptions): UnaryCall<IceCandidate, Empty>;
|
|
228
228
|
}
|
|
229
229
|
/**
|
|
230
|
-
* @generated from protobuf service dht.
|
|
230
|
+
* @generated from protobuf service dht.WebRtcConnectorRpc
|
|
231
231
|
*/
|
|
232
|
-
export declare class
|
|
232
|
+
export declare class WebRtcConnectorRpcClient implements IWebRtcConnectorRpcClient, ServiceInfo {
|
|
233
233
|
private readonly _transport;
|
|
234
234
|
typeName: string;
|
|
235
235
|
methods: import("@protobuf-ts/runtime-rpc").MethodInfo<any, any>[];
|
|
@@ -255,9 +255,9 @@ export declare class WebRtcConnectorServiceClient implements IWebRtcConnectorSer
|
|
|
255
255
|
iceCandidate(input: IceCandidate, options?: RpcOptions): UnaryCall<IceCandidate, Empty>;
|
|
256
256
|
}
|
|
257
257
|
/**
|
|
258
|
-
* @generated from protobuf service dht.
|
|
258
|
+
* @generated from protobuf service dht.ConnectionLockRpc
|
|
259
259
|
*/
|
|
260
|
-
export interface
|
|
260
|
+
export interface IConnectionLockRpcClient {
|
|
261
261
|
/**
|
|
262
262
|
* @generated from protobuf rpc: lockRequest(dht.LockRequest) returns (dht.LockResponse);
|
|
263
263
|
*/
|
|
@@ -272,9 +272,9 @@ export interface IConnectionLockerClient {
|
|
|
272
272
|
gracefulDisconnect(input: DisconnectNotice, options?: RpcOptions): UnaryCall<DisconnectNotice, DisconnectNoticeResponse>;
|
|
273
273
|
}
|
|
274
274
|
/**
|
|
275
|
-
* @generated from protobuf service dht.
|
|
275
|
+
* @generated from protobuf service dht.ConnectionLockRpc
|
|
276
276
|
*/
|
|
277
|
-
export declare class
|
|
277
|
+
export declare class ConnectionLockRpcClient implements IConnectionLockRpcClient, ServiceInfo {
|
|
278
278
|
private readonly _transport;
|
|
279
279
|
typeName: string;
|
|
280
280
|
methods: import("@protobuf-ts/runtime-rpc").MethodInfo<any, any>[];
|
|
@@ -296,9 +296,9 @@ export declare class ConnectionLockerClient implements IConnectionLockerClient,
|
|
|
296
296
|
gracefulDisconnect(input: DisconnectNotice, options?: RpcOptions): UnaryCall<DisconnectNotice, DisconnectNoticeResponse>;
|
|
297
297
|
}
|
|
298
298
|
/**
|
|
299
|
-
* @generated from protobuf service dht.
|
|
299
|
+
* @generated from protobuf service dht.ExternalApiRpc
|
|
300
300
|
*/
|
|
301
|
-
export interface
|
|
301
|
+
export interface IExternalApiRpcClient {
|
|
302
302
|
/**
|
|
303
303
|
* @generated from protobuf rpc: findData(dht.FindDataRequest) returns (dht.FindDataResponse);
|
|
304
304
|
*/
|
|
@@ -309,9 +309,9 @@ export interface IExternalApiServiceClient {
|
|
|
309
309
|
externalStoreData(input: ExternalStoreDataRequest, options?: RpcOptions): UnaryCall<ExternalStoreDataRequest, ExternalStoreDataResponse>;
|
|
310
310
|
}
|
|
311
311
|
/**
|
|
312
|
-
* @generated from protobuf service dht.
|
|
312
|
+
* @generated from protobuf service dht.ExternalApiRpc
|
|
313
313
|
*/
|
|
314
|
-
export declare class
|
|
314
|
+
export declare class ExternalApiRpcClient implements IExternalApiRpcClient, ServiceInfo {
|
|
315
315
|
private readonly _transport;
|
|
316
316
|
typeName: string;
|
|
317
317
|
methods: import("@protobuf-ts/runtime-rpc").MethodInfo<any, any>[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.ExternalApiRpcClient = exports.ConnectionLockRpcClient = exports.WebRtcConnectorRpcClient = exports.WebSocketConnectorRpcClient = exports.RecursiveFindSessionServiceClient = exports.StoreRpcClient = exports.RouterRpcClient = exports.DhtRpcServiceClient = void 0;
|
|
4
4
|
// @generated by protobuf-ts 2.9.1 with parameter server_generic,generate_dependencies,long_type_number
|
|
5
5
|
// @generated from protobuf file "packages/dht/protos/DhtRpc.proto" (package "dht", syntax proto3)
|
|
6
6
|
// tslint:disable
|
|
@@ -47,14 +47,14 @@ class DhtRpcServiceClient {
|
|
|
47
47
|
}
|
|
48
48
|
exports.DhtRpcServiceClient = DhtRpcServiceClient;
|
|
49
49
|
/**
|
|
50
|
-
* @generated from protobuf service dht.
|
|
50
|
+
* @generated from protobuf service dht.RouterRpc
|
|
51
51
|
*/
|
|
52
|
-
class
|
|
52
|
+
class RouterRpcClient {
|
|
53
53
|
constructor(_transport) {
|
|
54
54
|
this._transport = _transport;
|
|
55
|
-
this.typeName = DhtRpc_7.
|
|
56
|
-
this.methods = DhtRpc_7.
|
|
57
|
-
this.options = DhtRpc_7.
|
|
55
|
+
this.typeName = DhtRpc_7.RouterRpc.typeName;
|
|
56
|
+
this.methods = DhtRpc_7.RouterRpc.methods;
|
|
57
|
+
this.options = DhtRpc_7.RouterRpc.options;
|
|
58
58
|
}
|
|
59
59
|
/**
|
|
60
60
|
* @generated from protobuf rpc: routeMessage(dht.RouteMessageWrapper) returns (dht.RouteMessageAck);
|
|
@@ -78,16 +78,16 @@ class RoutingServiceClient {
|
|
|
78
78
|
return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
exports.
|
|
81
|
+
exports.RouterRpcClient = RouterRpcClient;
|
|
82
82
|
/**
|
|
83
|
-
* @generated from protobuf service dht.
|
|
83
|
+
* @generated from protobuf service dht.StoreRpc
|
|
84
84
|
*/
|
|
85
|
-
class
|
|
85
|
+
class StoreRpcClient {
|
|
86
86
|
constructor(_transport) {
|
|
87
87
|
this._transport = _transport;
|
|
88
|
-
this.typeName = DhtRpc_6.
|
|
89
|
-
this.methods = DhtRpc_6.
|
|
90
|
-
this.options = DhtRpc_6.
|
|
88
|
+
this.typeName = DhtRpc_6.StoreRpc.typeName;
|
|
89
|
+
this.methods = DhtRpc_6.StoreRpc.methods;
|
|
90
|
+
this.options = DhtRpc_6.StoreRpc.options;
|
|
91
91
|
}
|
|
92
92
|
/**
|
|
93
93
|
* @generated from protobuf rpc: storeData(dht.StoreDataRequest) returns (dht.StoreDataResponse);
|
|
@@ -111,7 +111,7 @@ class StoreServiceClient {
|
|
|
111
111
|
return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
exports.
|
|
114
|
+
exports.StoreRpcClient = StoreRpcClient;
|
|
115
115
|
/**
|
|
116
116
|
* @generated from protobuf service dht.RecursiveFindSessionService
|
|
117
117
|
*/
|
|
@@ -123,23 +123,23 @@ class RecursiveFindSessionServiceClient {
|
|
|
123
123
|
this.options = DhtRpc_5.RecursiveFindSessionService.options;
|
|
124
124
|
}
|
|
125
125
|
/**
|
|
126
|
-
* @generated from protobuf rpc:
|
|
126
|
+
* @generated from protobuf rpc: sendFindResponse(dht.FindResponse) returns (google.protobuf.Empty);
|
|
127
127
|
*/
|
|
128
|
-
|
|
128
|
+
sendFindResponse(input, options) {
|
|
129
129
|
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
130
130
|
return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
exports.RecursiveFindSessionServiceClient = RecursiveFindSessionServiceClient;
|
|
134
134
|
/**
|
|
135
|
-
* @generated from protobuf service dht.
|
|
135
|
+
* @generated from protobuf service dht.WebSocketConnectorRpc
|
|
136
136
|
*/
|
|
137
|
-
class
|
|
137
|
+
class WebSocketConnectorRpcClient {
|
|
138
138
|
constructor(_transport) {
|
|
139
139
|
this._transport = _transport;
|
|
140
|
-
this.typeName = DhtRpc_4.
|
|
141
|
-
this.methods = DhtRpc_4.
|
|
142
|
-
this.options = DhtRpc_4.
|
|
140
|
+
this.typeName = DhtRpc_4.WebSocketConnectorRpc.typeName;
|
|
141
|
+
this.methods = DhtRpc_4.WebSocketConnectorRpc.methods;
|
|
142
|
+
this.options = DhtRpc_4.WebSocketConnectorRpc.options;
|
|
143
143
|
}
|
|
144
144
|
/**
|
|
145
145
|
* @generated from protobuf rpc: requestConnection(dht.WebSocketConnectionRequest) returns (dht.WebSocketConnectionResponse);
|
|
@@ -149,16 +149,16 @@ class WebSocketConnectorServiceClient {
|
|
|
149
149
|
return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
|
-
exports.
|
|
152
|
+
exports.WebSocketConnectorRpcClient = WebSocketConnectorRpcClient;
|
|
153
153
|
/**
|
|
154
|
-
* @generated from protobuf service dht.
|
|
154
|
+
* @generated from protobuf service dht.WebRtcConnectorRpc
|
|
155
155
|
*/
|
|
156
|
-
class
|
|
156
|
+
class WebRtcConnectorRpcClient {
|
|
157
157
|
constructor(_transport) {
|
|
158
158
|
this._transport = _transport;
|
|
159
|
-
this.typeName = DhtRpc_3.
|
|
160
|
-
this.methods = DhtRpc_3.
|
|
161
|
-
this.options = DhtRpc_3.
|
|
159
|
+
this.typeName = DhtRpc_3.WebRtcConnectorRpc.typeName;
|
|
160
|
+
this.methods = DhtRpc_3.WebRtcConnectorRpc.methods;
|
|
161
|
+
this.options = DhtRpc_3.WebRtcConnectorRpc.options;
|
|
162
162
|
}
|
|
163
163
|
/**
|
|
164
164
|
* @generated from protobuf rpc: requestConnection(dht.WebRtcConnectionRequest) returns (google.protobuf.Empty);
|
|
@@ -189,16 +189,16 @@ class WebRtcConnectorServiceClient {
|
|
|
189
189
|
return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
|
-
exports.
|
|
192
|
+
exports.WebRtcConnectorRpcClient = WebRtcConnectorRpcClient;
|
|
193
193
|
/**
|
|
194
|
-
* @generated from protobuf service dht.
|
|
194
|
+
* @generated from protobuf service dht.ConnectionLockRpc
|
|
195
195
|
*/
|
|
196
|
-
class
|
|
196
|
+
class ConnectionLockRpcClient {
|
|
197
197
|
constructor(_transport) {
|
|
198
198
|
this._transport = _transport;
|
|
199
|
-
this.typeName = DhtRpc_2.
|
|
200
|
-
this.methods = DhtRpc_2.
|
|
201
|
-
this.options = DhtRpc_2.
|
|
199
|
+
this.typeName = DhtRpc_2.ConnectionLockRpc.typeName;
|
|
200
|
+
this.methods = DhtRpc_2.ConnectionLockRpc.methods;
|
|
201
|
+
this.options = DhtRpc_2.ConnectionLockRpc.options;
|
|
202
202
|
}
|
|
203
203
|
/**
|
|
204
204
|
* @generated from protobuf rpc: lockRequest(dht.LockRequest) returns (dht.LockResponse);
|
|
@@ -222,16 +222,16 @@ class ConnectionLockerClient {
|
|
|
222
222
|
return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
|
-
exports.
|
|
225
|
+
exports.ConnectionLockRpcClient = ConnectionLockRpcClient;
|
|
226
226
|
/**
|
|
227
|
-
* @generated from protobuf service dht.
|
|
227
|
+
* @generated from protobuf service dht.ExternalApiRpc
|
|
228
228
|
*/
|
|
229
|
-
class
|
|
229
|
+
class ExternalApiRpcClient {
|
|
230
230
|
constructor(_transport) {
|
|
231
231
|
this._transport = _transport;
|
|
232
|
-
this.typeName = DhtRpc_1.
|
|
233
|
-
this.methods = DhtRpc_1.
|
|
234
|
-
this.options = DhtRpc_1.
|
|
232
|
+
this.typeName = DhtRpc_1.ExternalApiRpc.typeName;
|
|
233
|
+
this.methods = DhtRpc_1.ExternalApiRpc.methods;
|
|
234
|
+
this.options = DhtRpc_1.ExternalApiRpc.options;
|
|
235
235
|
}
|
|
236
236
|
/**
|
|
237
237
|
* @generated from protobuf rpc: findData(dht.FindDataRequest) returns (dht.FindDataResponse);
|
|
@@ -248,5 +248,5 @@ class ExternalApiServiceClient {
|
|
|
248
248
|
return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
|
|
249
249
|
}
|
|
250
250
|
}
|
|
251
|
-
exports.
|
|
251
|
+
exports.ExternalApiRpcClient = ExternalApiRpcClient;
|
|
252
252
|
//# sourceMappingURL=DhtRpc.client.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DhtRpc.client.js","sourceRoot":"","sources":["../../../../../../src/proto/packages/dht/protos/DhtRpc.client.ts"],"names":[],"mappings":";;;AAAA,uGAAuG;AACvG,kGAAkG;AAClG,iBAAiB;AACjB,
|
|
1
|
+
{"version":3,"file":"DhtRpc.client.js","sourceRoot":"","sources":["../../../../../../src/proto/packages/dht/protos/DhtRpc.client.ts"],"names":[],"mappings":";;;AAAA,uGAAuG;AACvG,kGAAkG;AAClG,iBAAiB;AACjB,qCAA0C;AAK1C,qCAA6C;AAM7C,qCAA8C;AAK9C,qCAAiD;AAGjD,qCAAuD;AAEvD,qCAAoC;AAOpC,qCAAqC;AAKrC,qCAAyC;AAKzC,0DAA0D;AAsB1D;;GAEG;AACH,MAAa,mBAAmB;IAI5B,YAA6B,UAAwB;QAAxB,eAAU,GAAV,UAAU,CAAc;QAHrD,aAAQ,GAAG,sBAAa,CAAC,QAAQ,CAAC;QAClC,YAAO,GAAG,sBAAa,CAAC,OAAO,CAAC;QAChC,YAAO,GAAG,sBAAa,CAAC,OAAO,CAAC;IAEhC,CAAC;IACD;;OAEG;IACH,eAAe,CAAC,KAA0B,EAAE,OAAoB;QAC5D,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;QAC5E,OAAO,IAAA,4BAAc,EAA4C,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;IACnH,CAAC;IACD;;OAEG;IACH,IAAI,CAAC,KAAkB,EAAE,OAAoB;QACzC,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;QAC5E,OAAO,IAAA,4BAAc,EAA4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