@kurrent/kurrentdb-client 0.1.0
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/README.md +201 -0
- package/dist/Client/ServerFeatures.d.ts +17 -0
- package/dist/Client/ServerFeatures.js +56 -0
- package/dist/Client/ServerFeatures.js.map +1 -0
- package/dist/Client/discovery.d.ts +15 -0
- package/dist/Client/discovery.js +135 -0
- package/dist/Client/discovery.js.map +1 -0
- package/dist/Client/http.d.ts +19 -0
- package/dist/Client/http.js +97 -0
- package/dist/Client/http.js.map +1 -0
- package/dist/Client/index.d.ts +119 -0
- package/dist/Client/index.js +390 -0
- package/dist/Client/index.js.map +1 -0
- package/dist/Client/parseConnectionString.d.ts +23 -0
- package/dist/Client/parseConnectionString.js +238 -0
- package/dist/Client/parseConnectionString.js.map +1 -0
- package/dist/constants.d.ts +58 -0
- package/dist/constants.js +75 -0
- package/dist/constants.js.map +1 -0
- package/dist/events/binaryEvent.d.ts +16 -0
- package/dist/events/binaryEvent.js +14 -0
- package/dist/events/binaryEvent.js.map +1 -0
- package/dist/events/convertMetadata.d.ts +1 -0
- package/dist/events/convertMetadata.js +11 -0
- package/dist/events/convertMetadata.js.map +1 -0
- package/dist/events/index.d.ts +2 -0
- package/dist/events/index.js +19 -0
- package/dist/events/index.js.map +1 -0
- package/dist/events/jsonEvent.d.ts +8 -0
- package/dist/events/jsonEvent.js +14 -0
- package/dist/events/jsonEvent.js.map +1 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +32 -0
- package/dist/index.js.map +1 -0
- package/dist/persistentSubscription/createPersistentSubscriptionToAll.d.ts +23 -0
- package/dist/persistentSubscription/createPersistentSubscriptionToAll.js +90 -0
- package/dist/persistentSubscription/createPersistentSubscriptionToAll.js.map +1 -0
- package/dist/persistentSubscription/createPersistentSubscriptionToStream.d.ts +17 -0
- package/dist/persistentSubscription/createPersistentSubscriptionToStream.js +49 -0
- package/dist/persistentSubscription/createPersistentSubscriptionToStream.js.map +1 -0
- package/dist/persistentSubscription/deletePersistentSubscriptionToAll.d.ts +13 -0
- package/dist/persistentSubscription/deletePersistentSubscriptionToAll.js +30 -0
- package/dist/persistentSubscription/deletePersistentSubscriptionToAll.js.map +1 -0
- package/dist/persistentSubscription/deletePersistentSubscriptionToStream.d.ts +13 -0
- package/dist/persistentSubscription/deletePersistentSubscriptionToStream.js +28 -0
- package/dist/persistentSubscription/deletePersistentSubscriptionToStream.js.map +1 -0
- package/dist/persistentSubscription/getPersistentSubscriptionToAllInfo.d.ts +13 -0
- package/dist/persistentSubscription/getPersistentSubscriptionToAllInfo.js +31 -0
- package/dist/persistentSubscription/getPersistentSubscriptionToAllInfo.js.map +1 -0
- package/dist/persistentSubscription/getPersistentSubscriptionToStreamInfo.d.ts +14 -0
- package/dist/persistentSubscription/getPersistentSubscriptionToStreamInfo.js +49 -0
- package/dist/persistentSubscription/getPersistentSubscriptionToStreamInfo.js.map +1 -0
- package/dist/persistentSubscription/index.d.ts +16 -0
- package/dist/persistentSubscription/index.js +33 -0
- package/dist/persistentSubscription/index.js.map +1 -0
- package/dist/persistentSubscription/listAllPersistentSubscriptions.d.ts +13 -0
- package/dist/persistentSubscription/listAllPersistentSubscriptions.js +42 -0
- package/dist/persistentSubscription/listAllPersistentSubscriptions.js.map +1 -0
- package/dist/persistentSubscription/listPersistentSubscriptionsToAll.d.ts +13 -0
- package/dist/persistentSubscription/listPersistentSubscriptionsToAll.js +33 -0
- package/dist/persistentSubscription/listPersistentSubscriptionsToAll.js.map +1 -0
- package/dist/persistentSubscription/listPersistentSubscriptionsToStream.d.ts +14 -0
- package/dist/persistentSubscription/listPersistentSubscriptionsToStream.js +51 -0
- package/dist/persistentSubscription/listPersistentSubscriptionsToStream.js.map +1 -0
- package/dist/persistentSubscription/replayParkedMessagesToAll.d.ts +18 -0
- package/dist/persistentSubscription/replayParkedMessagesToAll.js +36 -0
- package/dist/persistentSubscription/replayParkedMessagesToAll.js.map +1 -0
- package/dist/persistentSubscription/replayParkedMessagesToStream.d.ts +19 -0
- package/dist/persistentSubscription/replayParkedMessagesToStream.js +57 -0
- package/dist/persistentSubscription/replayParkedMessagesToStream.js.map +1 -0
- package/dist/persistentSubscription/restartPersistentSubscriptionSubsystem.d.ts +11 -0
- package/dist/persistentSubscription/restartPersistentSubscriptionSubsystem.js +30 -0
- package/dist/persistentSubscription/restartPersistentSubscriptionSubsystem.js.map +1 -0
- package/dist/persistentSubscription/subscribeToPersistentSubscriptionToAll.d.ts +20 -0
- package/dist/persistentSubscription/subscribeToPersistentSubscriptionToAll.js +38 -0
- package/dist/persistentSubscription/subscribeToPersistentSubscriptionToAll.js.map +1 -0
- package/dist/persistentSubscription/subscribeToPersistentSubscriptionToStream.d.ts +20 -0
- package/dist/persistentSubscription/subscribeToPersistentSubscriptionToStream.js +37 -0
- package/dist/persistentSubscription/subscribeToPersistentSubscriptionToStream.js.map +1 -0
- package/dist/persistentSubscription/updatePersistentSubscriptionToAll.d.ts +15 -0
- package/dist/persistentSubscription/updatePersistentSubscriptionToAll.js +53 -0
- package/dist/persistentSubscription/updatePersistentSubscriptionToAll.js.map +1 -0
- package/dist/persistentSubscription/updatePersistentSubscriptionToStream.d.ts +15 -0
- package/dist/persistentSubscription/updatePersistentSubscriptionToStream.js +49 -0
- package/dist/persistentSubscription/updatePersistentSubscriptionToStream.js.map +1 -0
- package/dist/persistentSubscription/utils/PersistentSubscriptionImpl.d.ts +18 -0
- package/dist/persistentSubscription/utils/PersistentSubscriptionImpl.js +112 -0
- package/dist/persistentSubscription/utils/PersistentSubscriptionImpl.js.map +1 -0
- package/dist/persistentSubscription/utils/mapPersistentSubscriptionInfo.d.ts +146 -0
- package/dist/persistentSubscription/utils/mapPersistentSubscriptionInfo.js +204 -0
- package/dist/persistentSubscription/utils/mapPersistentSubscriptionInfo.js.map +1 -0
- package/dist/persistentSubscription/utils/persistentSubscriptionSettings.d.ts +90 -0
- package/dist/persistentSubscription/utils/persistentSubscriptionSettings.js +39 -0
- package/dist/persistentSubscription/utils/persistentSubscriptionSettings.js.map +1 -0
- package/dist/persistentSubscription/utils/settingsToGRPC.d.ts +5 -0
- package/dist/persistentSubscription/utils/settingsToGRPC.js +49 -0
- package/dist/persistentSubscription/utils/settingsToGRPC.js.map +1 -0
- package/dist/projections/createProjection.d.ts +24 -0
- package/dist/projections/createProjection.js +48 -0
- package/dist/projections/createProjection.js.map +1 -0
- package/dist/projections/deleteProjection.d.ts +28 -0
- package/dist/projections/deleteProjection.js +33 -0
- package/dist/projections/deleteProjection.js.map +1 -0
- package/dist/projections/disableProjection.d.ts +19 -0
- package/dist/projections/disableProjection.js +34 -0
- package/dist/projections/disableProjection.js.map +1 -0
- package/dist/projections/enableProjection.d.ts +12 -0
- package/dist/projections/enableProjection.js +25 -0
- package/dist/projections/enableProjection.js.map +1 -0
- package/dist/projections/getProjectionResult.d.ts +17 -0
- package/dist/projections/getProjectionResult.js +29 -0
- package/dist/projections/getProjectionResult.js.map +1 -0
- package/dist/projections/getProjectionState.d.ts +17 -0
- package/dist/projections/getProjectionState.js +29 -0
- package/dist/projections/getProjectionState.js.map +1 -0
- package/dist/projections/getProjectionStatus.d.ts +12 -0
- package/dist/projections/getProjectionStatus.js +36 -0
- package/dist/projections/getProjectionStatus.js.map +1 -0
- package/dist/projections/index.d.ts +11 -0
- package/dist/projections/index.js +28 -0
- package/dist/projections/index.js.map +1 -0
- package/dist/projections/listProjections.d.ts +12 -0
- package/dist/projections/listProjections.js +36 -0
- package/dist/projections/listProjections.js.map +1 -0
- package/dist/projections/resetProjection.d.ts +13 -0
- package/dist/projections/resetProjection.js +25 -0
- package/dist/projections/resetProjection.js.map +1 -0
- package/dist/projections/restartSubsystem.d.ts +11 -0
- package/dist/projections/restartSubsystem.js +21 -0
- package/dist/projections/restartSubsystem.js.map +1 -0
- package/dist/projections/updateProjection.d.ts +20 -0
- package/dist/projections/updateProjection.js +34 -0
- package/dist/projections/updateProjection.js.map +1 -0
- package/dist/projections/utils/mapGrpcProjectionDetails.d.ts +3 -0
- package/dist/projections/utils/mapGrpcProjectionDetails.js +31 -0
- package/dist/projections/utils/mapGrpcProjectionDetails.js.map +1 -0
- package/dist/streams/appendToStream/append.d.ts +5 -0
- package/dist/streams/appendToStream/append.js +131 -0
- package/dist/streams/appendToStream/append.js.map +1 -0
- package/dist/streams/appendToStream/batchAppend.d.ts +5 -0
- package/dist/streams/appendToStream/batchAppend.js +145 -0
- package/dist/streams/appendToStream/batchAppend.js.map +1 -0
- package/dist/streams/appendToStream/index.d.ts +24 -0
- package/dist/streams/appendToStream/index.js +24 -0
- package/dist/streams/appendToStream/index.js.map +1 -0
- package/dist/streams/appendToStream/unpackError.d.ts +5 -0
- package/dist/streams/appendToStream/unpackError.js +54 -0
- package/dist/streams/appendToStream/unpackError.js.map +1 -0
- package/dist/streams/deleteStream.d.ts +18 -0
- package/dist/streams/deleteStream.js +51 -0
- package/dist/streams/deleteStream.js.map +1 -0
- package/dist/streams/getStreamMetadata.d.ts +27 -0
- package/dist/streams/getStreamMetadata.js +40 -0
- package/dist/streams/getStreamMetadata.js.map +1 -0
- package/dist/streams/index.d.ts +9 -0
- package/dist/streams/index.js +27 -0
- package/dist/streams/index.js.map +1 -0
- package/dist/streams/readAll.d.ts +39 -0
- package/dist/streams/readAll.js +38 -0
- package/dist/streams/readAll.js.map +1 -0
- package/dist/streams/readStream.d.ts +35 -0
- package/dist/streams/readStream.js +58 -0
- package/dist/streams/readStream.js.map +1 -0
- package/dist/streams/setStreamMetadata.d.ts +20 -0
- package/dist/streams/setStreamMetadata.js +20 -0
- package/dist/streams/setStreamMetadata.js.map +1 -0
- package/dist/streams/subscribeToAll.d.ts +30 -0
- package/dist/streams/subscribeToAll.js +89 -0
- package/dist/streams/subscribeToAll.js.map +1 -0
- package/dist/streams/subscribeToStream.d.ts +27 -0
- package/dist/streams/subscribeToStream.js +52 -0
- package/dist/streams/subscribeToStream.js.map +1 -0
- package/dist/streams/tombstoneStream.d.ts +18 -0
- package/dist/streams/tombstoneStream.js +51 -0
- package/dist/streams/tombstoneStream.js.map +1 -0
- package/dist/streams/utils/ReadStream.d.ts +14 -0
- package/dist/streams/utils/ReadStream.js +61 -0
- package/dist/streams/utils/ReadStream.js.map +1 -0
- package/dist/streams/utils/Subscription.d.ts +16 -0
- package/dist/streams/utils/Subscription.js +71 -0
- package/dist/streams/utils/Subscription.js.map +1 -0
- package/dist/streams/utils/streamMetadata.d.ts +53 -0
- package/dist/streams/utils/streamMetadata.js +77 -0
- package/dist/streams/utils/streamMetadata.js.map +1 -0
- package/dist/streams/utils/systemStreams.d.ts +20 -0
- package/dist/streams/utils/systemStreams.js +28 -0
- package/dist/streams/utils/systemStreams.js.map +1 -0
- package/dist/types/events.d.ts +157 -0
- package/dist/types/events.js +3 -0
- package/dist/types/events.js.map +1 -0
- package/dist/types/index.d.ts +348 -0
- package/dist/types/index.js +22 -0
- package/dist/types/index.js.map +1 -0
- package/dist/utils/CommandError.d.ts +174 -0
- package/dist/utils/CommandError.js +403 -0
- package/dist/utils/CommandError.js.map +1 -0
- package/dist/utils/backpressuredWrite.d.ts +2 -0
- package/dist/utils/backpressuredWrite.js +50 -0
- package/dist/utils/backpressuredWrite.js.map +1 -0
- package/dist/utils/convertBridgeError.d.ts +1 -0
- package/dist/utils/convertBridgeError.js +41 -0
- package/dist/utils/convertBridgeError.js.map +1 -0
- package/dist/utils/convertGrpcEvent.d.ts +10 -0
- package/dist/utils/convertGrpcEvent.js +135 -0
- package/dist/utils/convertGrpcEvent.js.map +1 -0
- package/dist/utils/convertRustEvent.d.ts +4 -0
- package/dist/utils/convertRustEvent.js +85 -0
- package/dist/utils/convertRustEvent.js.map +1 -0
- package/dist/utils/debug.d.ts +7 -0
- package/dist/utils/debug.js +30 -0
- package/dist/utils/debug.js.map +1 -0
- package/dist/utils/filter.d.ts +44 -0
- package/dist/utils/filter.js +29 -0
- package/dist/utils/filter.js.map +1 -0
- package/dist/utils/grpcStreamIdentifier.d.ts +2 -0
- package/dist/utils/grpcStreamIdentifier.js +11 -0
- package/dist/utils/grpcStreamIdentifier.js.map +1 -0
- package/dist/utils/grpcUUID.d.ts +4 -0
- package/dist/utils/grpcUUID.js +29 -0
- package/dist/utils/grpcUUID.js.map +1 -0
- package/dist/utils/index.d.ts +9 -0
- package/dist/utils/index.js +26 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/isClientCancellationError.d.ts +1 -0
- package/dist/utils/isClientCancellationError.js +13 -0
- package/dist/utils/isClientCancellationError.js.map +1 -0
- package/dist/utils/utilityTypes.d.ts +2 -0
- package/dist/utils/utilityTypes.js +3 -0
- package/dist/utils/utilityTypes.js.map +1 -0
- package/generated/cluster_grpc_pb.d.ts +211 -0
- package/generated/cluster_grpc_pb.js +247 -0
- package/generated/cluster_pb.d.ts +546 -0
- package/generated/cluster_pb.js +4357 -0
- package/generated/code_grpc_pb.js +1 -0
- package/generated/code_pb.d.ts +27 -0
- package/generated/code_pb.js +48 -0
- package/generated/gossip_grpc_pb.d.ts +42 -0
- package/generated/gossip_grpc_pb.js +45 -0
- package/generated/gossip_pb.d.ts +111 -0
- package/generated/gossip_pb.js +727 -0
- package/generated/monitoring_grpc_pb.d.ts +39 -0
- package/generated/monitoring_grpc_pb.js +44 -0
- package/generated/monitoring_pb.d.ts +52 -0
- package/generated/monitoring_pb.js +361 -0
- package/generated/operations_grpc_pb.d.ts +144 -0
- package/generated/operations_grpc_pb.js +144 -0
- package/generated/operations_pb.d.ts +151 -0
- package/generated/operations_pb.js +1050 -0
- package/generated/persistent_grpc_pb.d.ts +160 -0
- package/generated/persistent_grpc_pb.js +265 -0
- package/generated/persistent_pb.d.ts +1702 -0
- package/generated/persistent_pb.js +12340 -0
- package/generated/projections_grpc_pb.d.ts +194 -0
- package/generated/projections_grpc_pb.js +332 -0
- package/generated/projections_pb.d.ts +821 -0
- package/generated/projections_pb.js +6065 -0
- package/generated/serverfeatures_grpc_pb.d.ts +42 -0
- package/generated/serverfeatures_grpc_pb.js +45 -0
- package/generated/serverfeatures_pb.d.ts +61 -0
- package/generated/serverfeatures_pb.js +476 -0
- package/generated/shared_grpc_pb.js +1 -0
- package/generated/shared_pb.d.ts +335 -0
- package/generated/shared_pb.js +2374 -0
- package/generated/status_grpc_pb.js +1 -0
- package/generated/status_pb.d.ts +38 -0
- package/generated/status_pb.js +261 -0
- package/generated/streams_grpc_pb.d.ts +112 -0
- package/generated/streams_grpc_pb.js +180 -0
- package/generated/streams_pb.d.ts +1660 -0
- package/generated/streams_pb.js +11556 -0
- package/generated/users_grpc_pb.d.ts +158 -0
- package/generated/users_grpc_pb.js +275 -0
- package/generated/users_pb.d.ts +601 -0
- package/generated/users_pb.js +4451 -0
- package/package.json +64 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// GENERATED CODE -- NO SERVICES IN PROTO
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// package: google.rpc
|
|
2
|
+
// file: code.proto
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
|
|
7
|
+
import * as jspb from "google-protobuf";
|
|
8
|
+
|
|
9
|
+
export enum Code {
|
|
10
|
+
OK = 0,
|
|
11
|
+
CANCELLED = 1,
|
|
12
|
+
UNKNOWN = 2,
|
|
13
|
+
INVALID_ARGUMENT = 3,
|
|
14
|
+
DEADLINE_EXCEEDED = 4,
|
|
15
|
+
NOT_FOUND = 5,
|
|
16
|
+
ALREADY_EXISTS = 6,
|
|
17
|
+
PERMISSION_DENIED = 7,
|
|
18
|
+
UNAUTHENTICATED = 16,
|
|
19
|
+
RESOURCE_EXHAUSTED = 8,
|
|
20
|
+
FAILED_PRECONDITION = 9,
|
|
21
|
+
ABORTED = 10,
|
|
22
|
+
OUT_OF_RANGE = 11,
|
|
23
|
+
UNIMPLEMENTED = 12,
|
|
24
|
+
INTERNAL = 13,
|
|
25
|
+
UNAVAILABLE = 14,
|
|
26
|
+
DATA_LOSS = 15,
|
|
27
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// source: code.proto
|
|
2
|
+
/**
|
|
3
|
+
* @fileoverview
|
|
4
|
+
* @enhanceable
|
|
5
|
+
* @suppress {missingRequire} reports error on implicit type usages.
|
|
6
|
+
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
|
7
|
+
* field starts with 'MSG_' and isn't a translatable message.
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
11
|
+
/* eslint-disable */
|
|
12
|
+
// @ts-nocheck
|
|
13
|
+
|
|
14
|
+
var jspb = require('google-protobuf');
|
|
15
|
+
var goog = jspb;
|
|
16
|
+
var global = (function() {
|
|
17
|
+
if (this) { return this; }
|
|
18
|
+
if (typeof window !== 'undefined') { return window; }
|
|
19
|
+
if (typeof global !== 'undefined') { return global; }
|
|
20
|
+
if (typeof self !== 'undefined') { return self; }
|
|
21
|
+
return Function('return this')();
|
|
22
|
+
}.call(null));
|
|
23
|
+
|
|
24
|
+
goog.exportSymbol('proto.google.rpc.Code', null, global);
|
|
25
|
+
/**
|
|
26
|
+
* @enum {number}
|
|
27
|
+
*/
|
|
28
|
+
proto.google.rpc.Code = {
|
|
29
|
+
OK: 0,
|
|
30
|
+
CANCELLED: 1,
|
|
31
|
+
UNKNOWN: 2,
|
|
32
|
+
INVALID_ARGUMENT: 3,
|
|
33
|
+
DEADLINE_EXCEEDED: 4,
|
|
34
|
+
NOT_FOUND: 5,
|
|
35
|
+
ALREADY_EXISTS: 6,
|
|
36
|
+
PERMISSION_DENIED: 7,
|
|
37
|
+
UNAUTHENTICATED: 16,
|
|
38
|
+
RESOURCE_EXHAUSTED: 8,
|
|
39
|
+
FAILED_PRECONDITION: 9,
|
|
40
|
+
ABORTED: 10,
|
|
41
|
+
OUT_OF_RANGE: 11,
|
|
42
|
+
UNIMPLEMENTED: 12,
|
|
43
|
+
INTERNAL: 13,
|
|
44
|
+
UNAVAILABLE: 14,
|
|
45
|
+
DATA_LOSS: 15
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
goog.object.extend(exports, proto.google.rpc);
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// package: event_store.client.gossip
|
|
2
|
+
// file: gossip.proto
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
|
|
7
|
+
import * as grpc from "@grpc/grpc-js";
|
|
8
|
+
import * as gossip_pb from "./gossip_pb";
|
|
9
|
+
import * as shared_pb from "./shared_pb";
|
|
10
|
+
|
|
11
|
+
interface IGossipService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
|
|
12
|
+
read: IGossipService_IRead;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
interface IGossipService_IRead extends grpc.MethodDefinition<shared_pb.Empty, gossip_pb.ClusterInfo> {
|
|
16
|
+
path: "/event_store.client.gossip.Gossip/Read";
|
|
17
|
+
requestStream: false;
|
|
18
|
+
responseStream: false;
|
|
19
|
+
requestSerialize: grpc.serialize<shared_pb.Empty>;
|
|
20
|
+
requestDeserialize: grpc.deserialize<shared_pb.Empty>;
|
|
21
|
+
responseSerialize: grpc.serialize<gossip_pb.ClusterInfo>;
|
|
22
|
+
responseDeserialize: grpc.deserialize<gossip_pb.ClusterInfo>;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export const GossipService: IGossipService;
|
|
26
|
+
|
|
27
|
+
export interface IGossipServer extends grpc.UntypedServiceImplementation {
|
|
28
|
+
read: grpc.handleUnaryCall<shared_pb.Empty, gossip_pb.ClusterInfo>;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface IGossipClient {
|
|
32
|
+
read(request: shared_pb.Empty, callback: (error: grpc.ServiceError | null, response: gossip_pb.ClusterInfo) => void): grpc.ClientUnaryCall;
|
|
33
|
+
read(request: shared_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: gossip_pb.ClusterInfo) => void): grpc.ClientUnaryCall;
|
|
34
|
+
read(request: shared_pb.Empty, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: gossip_pb.ClusterInfo) => void): grpc.ClientUnaryCall;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export class GossipClient extends grpc.Client implements IGossipClient {
|
|
38
|
+
constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial<grpc.ClientOptions>);
|
|
39
|
+
public read(request: shared_pb.Empty, callback: (error: grpc.ServiceError | null, response: gossip_pb.ClusterInfo) => void): grpc.ClientUnaryCall;
|
|
40
|
+
public read(request: shared_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: gossip_pb.ClusterInfo) => void): grpc.ClientUnaryCall;
|
|
41
|
+
public read(request: shared_pb.Empty, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: gossip_pb.ClusterInfo) => void): grpc.ClientUnaryCall;
|
|
42
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
2
|
+
|
|
3
|
+
'use strict';
|
|
4
|
+
var grpc = require('@grpc/grpc-js');
|
|
5
|
+
var gossip_pb = require('./gossip_pb.js');
|
|
6
|
+
var shared_pb = require('./shared_pb.js');
|
|
7
|
+
|
|
8
|
+
function serialize_event_store_client_Empty(arg) {
|
|
9
|
+
if (!(arg instanceof shared_pb.Empty)) {
|
|
10
|
+
throw new Error('Expected argument of type event_store.client.Empty');
|
|
11
|
+
}
|
|
12
|
+
return Buffer.from(arg.serializeBinary());
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
function deserialize_event_store_client_Empty(buffer_arg) {
|
|
16
|
+
return shared_pb.Empty.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function serialize_event_store_client_gossip_ClusterInfo(arg) {
|
|
20
|
+
if (!(arg instanceof gossip_pb.ClusterInfo)) {
|
|
21
|
+
throw new Error('Expected argument of type event_store.client.gossip.ClusterInfo');
|
|
22
|
+
}
|
|
23
|
+
return Buffer.from(arg.serializeBinary());
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
function deserialize_event_store_client_gossip_ClusterInfo(buffer_arg) {
|
|
27
|
+
return gossip_pb.ClusterInfo.deserializeBinary(new Uint8Array(buffer_arg));
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
var GossipService = exports.GossipService = {
|
|
32
|
+
read: {
|
|
33
|
+
path: '/event_store.client.gossip.Gossip/Read',
|
|
34
|
+
requestStream: false,
|
|
35
|
+
responseStream: false,
|
|
36
|
+
requestType: shared_pb.Empty,
|
|
37
|
+
responseType: gossip_pb.ClusterInfo,
|
|
38
|
+
requestSerialize: serialize_event_store_client_Empty,
|
|
39
|
+
requestDeserialize: deserialize_event_store_client_Empty,
|
|
40
|
+
responseSerialize: serialize_event_store_client_gossip_ClusterInfo,
|
|
41
|
+
responseDeserialize: deserialize_event_store_client_gossip_ClusterInfo,
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
exports.GossipClient = grpc.makeGenericClientConstructor(GossipService, 'Gossip');
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
// package: event_store.client.gossip
|
|
2
|
+
// file: gossip.proto
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
|
|
7
|
+
import * as jspb from "google-protobuf";
|
|
8
|
+
import * as shared_pb from "./shared_pb";
|
|
9
|
+
|
|
10
|
+
export class ClusterInfo extends jspb.Message {
|
|
11
|
+
clearMembersList(): void;
|
|
12
|
+
getMembersList(): Array<MemberInfo>;
|
|
13
|
+
setMembersList(value: Array<MemberInfo>): ClusterInfo;
|
|
14
|
+
addMembers(value?: MemberInfo, index?: number): MemberInfo;
|
|
15
|
+
|
|
16
|
+
serializeBinary(): Uint8Array;
|
|
17
|
+
toObject(includeInstance?: boolean): ClusterInfo.AsObject;
|
|
18
|
+
static toObject(includeInstance: boolean, msg: ClusterInfo): ClusterInfo.AsObject;
|
|
19
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
20
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
21
|
+
static serializeBinaryToWriter(message: ClusterInfo, writer: jspb.BinaryWriter): void;
|
|
22
|
+
static deserializeBinary(bytes: Uint8Array): ClusterInfo;
|
|
23
|
+
static deserializeBinaryFromReader(message: ClusterInfo, reader: jspb.BinaryReader): ClusterInfo;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export namespace ClusterInfo {
|
|
27
|
+
export type AsObject = {
|
|
28
|
+
membersList: Array<MemberInfo.AsObject>,
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export class EndPoint extends jspb.Message {
|
|
33
|
+
getAddress(): string;
|
|
34
|
+
setAddress(value: string): EndPoint;
|
|
35
|
+
getPort(): number;
|
|
36
|
+
setPort(value: number): EndPoint;
|
|
37
|
+
|
|
38
|
+
serializeBinary(): Uint8Array;
|
|
39
|
+
toObject(includeInstance?: boolean): EndPoint.AsObject;
|
|
40
|
+
static toObject(includeInstance: boolean, msg: EndPoint): EndPoint.AsObject;
|
|
41
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
42
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
43
|
+
static serializeBinaryToWriter(message: EndPoint, writer: jspb.BinaryWriter): void;
|
|
44
|
+
static deserializeBinary(bytes: Uint8Array): EndPoint;
|
|
45
|
+
static deserializeBinaryFromReader(message: EndPoint, reader: jspb.BinaryReader): EndPoint;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export namespace EndPoint {
|
|
49
|
+
export type AsObject = {
|
|
50
|
+
address: string,
|
|
51
|
+
port: number,
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export class MemberInfo extends jspb.Message {
|
|
56
|
+
|
|
57
|
+
hasInstanceId(): boolean;
|
|
58
|
+
clearInstanceId(): void;
|
|
59
|
+
getInstanceId(): shared_pb.UUID | undefined;
|
|
60
|
+
setInstanceId(value?: shared_pb.UUID): MemberInfo;
|
|
61
|
+
getTimeStamp(): string;
|
|
62
|
+
setTimeStamp(value: string): MemberInfo;
|
|
63
|
+
getState(): MemberInfo.VNodeState;
|
|
64
|
+
setState(value: MemberInfo.VNodeState): MemberInfo;
|
|
65
|
+
getIsAlive(): boolean;
|
|
66
|
+
setIsAlive(value: boolean): MemberInfo;
|
|
67
|
+
|
|
68
|
+
hasHttpEndPoint(): boolean;
|
|
69
|
+
clearHttpEndPoint(): void;
|
|
70
|
+
getHttpEndPoint(): EndPoint | undefined;
|
|
71
|
+
setHttpEndPoint(value?: EndPoint): MemberInfo;
|
|
72
|
+
|
|
73
|
+
serializeBinary(): Uint8Array;
|
|
74
|
+
toObject(includeInstance?: boolean): MemberInfo.AsObject;
|
|
75
|
+
static toObject(includeInstance: boolean, msg: MemberInfo): MemberInfo.AsObject;
|
|
76
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
77
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
78
|
+
static serializeBinaryToWriter(message: MemberInfo, writer: jspb.BinaryWriter): void;
|
|
79
|
+
static deserializeBinary(bytes: Uint8Array): MemberInfo;
|
|
80
|
+
static deserializeBinaryFromReader(message: MemberInfo, reader: jspb.BinaryReader): MemberInfo;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export namespace MemberInfo {
|
|
84
|
+
export type AsObject = {
|
|
85
|
+
instanceId?: shared_pb.UUID.AsObject,
|
|
86
|
+
timeStamp: string,
|
|
87
|
+
state: MemberInfo.VNodeState,
|
|
88
|
+
isAlive: boolean,
|
|
89
|
+
httpEndPoint?: EndPoint.AsObject,
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export enum VNodeState {
|
|
93
|
+
INITIALIZING = 0,
|
|
94
|
+
DISCOVERLEADER = 1,
|
|
95
|
+
UNKNOWN = 2,
|
|
96
|
+
PREREPLICA = 3,
|
|
97
|
+
CATCHINGUP = 4,
|
|
98
|
+
CLONE = 5,
|
|
99
|
+
FOLLOWER = 6,
|
|
100
|
+
PRELEADER = 7,
|
|
101
|
+
LEADER = 8,
|
|
102
|
+
MANAGER = 9,
|
|
103
|
+
SHUTTINGDOWN = 10,
|
|
104
|
+
SHUTDOWN = 11,
|
|
105
|
+
READONLYLEADERLESS = 12,
|
|
106
|
+
PREREADONLYREPLICA = 13,
|
|
107
|
+
READONLYREPLICA = 14,
|
|
108
|
+
RESIGNINGLEADER = 15,
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
}
|