@nsshunt/stsappframework 3.1.30 → 3.1.32
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/gRPC/ststest/protos/auth_sample.js +3 -0
- package/dist/gRPC/ststest/protos/auth_sample.js.map +1 -0
- package/dist/gRPC/ststest/protos/echo.js +3 -0
- package/dist/gRPC/ststest/protos/echo.js.map +1 -0
- package/dist/gRPC/ststest/protos/grpc/examples/echo/Echo.js +4 -0
- package/dist/gRPC/ststest/protos/grpc/examples/echo/Echo.js.map +1 -0
- package/dist/gRPC/ststest/protos/grpc/examples/echo/EchoRequest.js +4 -0
- package/dist/gRPC/ststest/protos/grpc/examples/echo/EchoRequest.js.map +1 -0
- package/dist/gRPC/ststest/protos/grpc/examples/echo/EchoResponse.js +4 -0
- package/dist/gRPC/ststest/protos/grpc/examples/echo/EchoResponse.js.map +1 -0
- package/dist/gRPC/ststest/protos/grpc/testing/Request.js +4 -0
- package/dist/gRPC/ststest/protos/grpc/testing/Request.js.map +1 -0
- package/dist/gRPC/ststest/protos/grpc/testing/Response.js +4 -0
- package/dist/gRPC/ststest/protos/grpc/testing/Response.js.map +1 -0
- package/dist/gRPC/ststest/protos/grpc/testing/TestService.js +4 -0
- package/dist/gRPC/ststest/protos/grpc/testing/TestService.js.map +1 -0
- package/dist/gRPC/ststest/protos/hellostreamingworld/HelloReply.js +4 -0
- package/dist/gRPC/ststest/protos/hellostreamingworld/HelloReply.js.map +1 -0
- package/dist/gRPC/ststest/protos/hellostreamingworld/HelloRequest.js +4 -0
- package/dist/gRPC/ststest/protos/hellostreamingworld/HelloRequest.js.map +1 -0
- package/dist/gRPC/ststest/protos/hellostreamingworld/MultiGreeter.js +4 -0
- package/dist/gRPC/ststest/protos/hellostreamingworld/MultiGreeter.js.map +1 -0
- package/dist/gRPC/ststest/protos/hellostreamingworld.js +3 -0
- package/dist/gRPC/ststest/protos/hellostreamingworld.js.map +1 -0
- package/dist/gRPC/ststest/protos/helloworld/Greeter.js +4 -0
- package/dist/gRPC/ststest/protos/helloworld/Greeter.js.map +1 -0
- package/dist/gRPC/ststest/protos/helloworld/HelloReply.js +4 -0
- package/dist/gRPC/ststest/protos/helloworld/HelloReply.js.map +1 -0
- package/dist/gRPC/ststest/protos/helloworld/HelloRequest.js +4 -0
- package/dist/gRPC/ststest/protos/helloworld/HelloRequest.js.map +1 -0
- package/dist/gRPC/ststest/protos/helloworld.js +3 -0
- package/dist/gRPC/ststest/protos/helloworld.js.map +1 -0
- package/dist/gRPC/ststest/protos/keyvaluestore/KeyValueStore.js +4 -0
- package/dist/gRPC/ststest/protos/keyvaluestore/KeyValueStore.js.map +1 -0
- package/dist/gRPC/ststest/protos/keyvaluestore/Request.js +4 -0
- package/dist/gRPC/ststest/protos/keyvaluestore/Request.js.map +1 -0
- package/dist/gRPC/ststest/protos/keyvaluestore/Response.js +4 -0
- package/dist/gRPC/ststest/protos/keyvaluestore/Response.js.map +1 -0
- package/dist/gRPC/ststest/protos/keyvaluestore.js +3 -0
- package/dist/gRPC/ststest/protos/keyvaluestore.js.map +1 -0
- package/dist/gRPC/ststest/protos/route_guide.js +3 -0
- package/dist/gRPC/ststest/protos/route_guide.js.map +1 -0
- package/dist/gRPC/ststest/protos/routeguide/Feature.js +4 -0
- package/dist/gRPC/ststest/protos/routeguide/Feature.js.map +1 -0
- package/dist/gRPC/ststest/protos/routeguide/Point.js +4 -0
- package/dist/gRPC/ststest/protos/routeguide/Point.js.map +1 -0
- package/dist/gRPC/ststest/protos/routeguide/Rectangle.js +4 -0
- package/dist/gRPC/ststest/protos/routeguide/Rectangle.js.map +1 -0
- package/dist/gRPC/ststest/protos/routeguide/RouteGuide.js +4 -0
- package/dist/gRPC/ststest/protos/routeguide/RouteGuide.js.map +1 -0
- package/dist/gRPC/ststest/protos/routeguide/RouteNote.js +4 -0
- package/dist/gRPC/ststest/protos/routeguide/RouteNote.js.map +1 -0
- package/dist/gRPC/ststest/protos/routeguide/RouteSummary.js +4 -0
- package/dist/gRPC/ststest/protos/routeguide/RouteSummary.js.map +1 -0
- package/dist/gRPC/ststest/src/route_guide_server.js +1 -0
- package/dist/gRPC/ststest/src/route_guide_server.js.map +1 -1
- package/dist/gRPC/ststest/src/route_guide_server2.js +205 -0
- package/dist/gRPC/ststest/src/route_guide_server2.js.map +1 -0
- package/package.json +1 -1
- package/run-grpc-server.sh +1 -1
- package/src/gRPC/ststest/protos/auth_sample.ts +20 -0
- package/src/gRPC/ststest/protos/echo.ts +22 -0
- package/src/gRPC/ststest/protos/grpc/examples/echo/Echo.ts +55 -0
- package/src/gRPC/ststest/protos/grpc/examples/echo/EchoRequest.ts +10 -0
- package/src/gRPC/ststest/protos/grpc/examples/echo/EchoResponse.ts +10 -0
- package/src/gRPC/ststest/protos/grpc/testing/Request.ts +12 -0
- package/src/gRPC/ststest/protos/grpc/testing/Response.ts +12 -0
- package/src/gRPC/ststest/protos/grpc/testing/TestService.ts +27 -0
- package/src/gRPC/ststest/protos/hellostreamingworld/HelloReply.ts +10 -0
- package/src/gRPC/ststest/protos/hellostreamingworld/HelloRequest.ts +12 -0
- package/src/gRPC/ststest/protos/hellostreamingworld/MultiGreeter.ts +23 -0
- package/src/gRPC/ststest/protos/hellostreamingworld.ts +18 -0
- package/src/gRPC/ststest/protos/helloworld/Greeter.ts +35 -0
- package/src/gRPC/ststest/protos/helloworld/HelloReply.ts +10 -0
- package/src/gRPC/ststest/protos/helloworld/HelloRequest.ts +10 -0
- package/src/gRPC/ststest/protos/helloworld.ts +18 -0
- package/src/gRPC/ststest/protos/keyvaluestore/KeyValueStore.ts +23 -0
- package/src/gRPC/ststest/protos/keyvaluestore/Request.ts +10 -0
- package/src/gRPC/ststest/protos/keyvaluestore/Response.ts +10 -0
- package/src/gRPC/ststest/protos/keyvaluestore.ts +18 -0
- package/src/gRPC/ststest/protos/route_guide.ts +21 -0
- package/src/gRPC/ststest/protos/routeguide/Feature.ts +13 -0
- package/src/gRPC/ststest/protos/routeguide/Point.ts +12 -0
- package/src/gRPC/ststest/protos/routeguide/Rectangle.ts +13 -0
- package/src/gRPC/ststest/protos/routeguide/RouteGuide.ts +58 -0
- package/src/gRPC/ststest/protos/routeguide/RouteNote.ts +13 -0
- package/src/gRPC/ststest/protos/routeguide/RouteSummary.ts +16 -0
- package/src/gRPC/ststest/src/route_guide_server.ts +3 -0
- package/src/gRPC/ststest/src/route_guide_server2.ts +211 -0
- package/types/gRPC/ststest/protos/auth_sample.d.ts +19 -0
- package/types/gRPC/ststest/protos/auth_sample.d.ts.map +1 -0
- package/types/gRPC/ststest/protos/echo.d.ts +21 -0
- package/types/gRPC/ststest/protos/echo.d.ts.map +1 -0
- package/types/gRPC/ststest/protos/grpc/examples/echo/Echo.d.ts +43 -0
- package/types/gRPC/ststest/protos/grpc/examples/echo/Echo.d.ts.map +1 -0
- package/types/gRPC/ststest/protos/grpc/examples/echo/EchoRequest.d.ts +7 -0
- package/types/gRPC/ststest/protos/grpc/examples/echo/EchoRequest.d.ts.map +1 -0
- package/types/gRPC/ststest/protos/grpc/examples/echo/EchoResponse.d.ts +7 -0
- package/types/gRPC/ststest/protos/grpc/examples/echo/EchoResponse.d.ts.map +1 -0
- package/types/gRPC/ststest/protos/grpc/testing/Request.d.ts +9 -0
- package/types/gRPC/ststest/protos/grpc/testing/Request.d.ts.map +1 -0
- package/types/gRPC/ststest/protos/grpc/testing/Response.d.ts +9 -0
- package/types/gRPC/ststest/protos/grpc/testing/Response.d.ts.map +1 -0
- package/types/gRPC/ststest/protos/grpc/testing/TestService.d.ts +21 -0
- package/types/gRPC/ststest/protos/grpc/testing/TestService.d.ts.map +1 -0
- package/types/gRPC/ststest/protos/hellostreamingworld/HelloReply.d.ts +7 -0
- package/types/gRPC/ststest/protos/hellostreamingworld/HelloReply.d.ts.map +1 -0
- package/types/gRPC/ststest/protos/hellostreamingworld/HelloRequest.d.ts +9 -0
- package/types/gRPC/ststest/protos/hellostreamingworld/HelloRequest.d.ts.map +1 -0
- package/types/gRPC/ststest/protos/hellostreamingworld/MultiGreeter.d.ts +17 -0
- package/types/gRPC/ststest/protos/hellostreamingworld/MultiGreeter.d.ts.map +1 -0
- package/types/gRPC/ststest/protos/hellostreamingworld.d.ts +17 -0
- package/types/gRPC/ststest/protos/hellostreamingworld.d.ts.map +1 -0
- package/types/gRPC/ststest/protos/helloworld/Greeter.d.ts +27 -0
- package/types/gRPC/ststest/protos/helloworld/Greeter.d.ts.map +1 -0
- package/types/gRPC/ststest/protos/helloworld/HelloReply.d.ts +7 -0
- package/types/gRPC/ststest/protos/helloworld/HelloReply.d.ts.map +1 -0
- package/types/gRPC/ststest/protos/helloworld/HelloRequest.d.ts +7 -0
- package/types/gRPC/ststest/protos/helloworld/HelloRequest.d.ts.map +1 -0
- package/types/gRPC/ststest/protos/helloworld.d.ts +17 -0
- package/types/gRPC/ststest/protos/helloworld.d.ts.map +1 -0
- package/types/gRPC/ststest/protos/keyvaluestore/KeyValueStore.d.ts +17 -0
- package/types/gRPC/ststest/protos/keyvaluestore/KeyValueStore.d.ts.map +1 -0
- package/types/gRPC/ststest/protos/keyvaluestore/Request.d.ts +7 -0
- package/types/gRPC/ststest/protos/keyvaluestore/Request.d.ts.map +1 -0
- package/types/gRPC/ststest/protos/keyvaluestore/Response.d.ts +7 -0
- package/types/gRPC/ststest/protos/keyvaluestore/Response.d.ts.map +1 -0
- package/types/gRPC/ststest/protos/keyvaluestore.d.ts +17 -0
- package/types/gRPC/ststest/protos/keyvaluestore.d.ts.map +1 -0
- package/types/gRPC/ststest/protos/route_guide.d.ts +20 -0
- package/types/gRPC/ststest/protos/route_guide.d.ts.map +1 -0
- package/types/gRPC/ststest/protos/routeguide/Feature.d.ts +10 -0
- package/types/gRPC/ststest/protos/routeguide/Feature.d.ts.map +1 -0
- package/types/gRPC/ststest/protos/routeguide/Point.d.ts +9 -0
- package/types/gRPC/ststest/protos/routeguide/Point.d.ts.map +1 -0
- package/types/gRPC/ststest/protos/routeguide/Rectangle.d.ts +10 -0
- package/types/gRPC/ststest/protos/routeguide/Rectangle.d.ts.map +1 -0
- package/types/gRPC/ststest/protos/routeguide/RouteGuide.d.ts +46 -0
- package/types/gRPC/ststest/protos/routeguide/RouteGuide.d.ts.map +1 -0
- package/types/gRPC/ststest/protos/routeguide/RouteNote.d.ts +10 -0
- package/types/gRPC/ststest/protos/routeguide/RouteNote.d.ts.map +1 -0
- package/types/gRPC/ststest/protos/routeguide/RouteSummary.d.ts +13 -0
- package/types/gRPC/ststest/protos/routeguide/RouteSummary.d.ts.map +1 -0
- package/types/gRPC/ststest/src/route_guide_server2.d.ts +3 -0
- package/types/gRPC/ststest/src/route_guide_server2.d.ts.map +1 -0
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
/* eslint @typescript-eslint/no-explicit-any: 0 */ // --> OFF
|
|
2
|
+
|
|
3
|
+
// cd /home/marcusbettens/projects/stsappframework/src/gRPC/ststest
|
|
4
|
+
// npx proto-loader-gen-types --longs=String --enums=String --defaults --oneofs --grpcLib=@grpc/grpc-js --outDir=protos/ protos/*.proto
|
|
5
|
+
|
|
6
|
+
/*
|
|
7
|
+
*
|
|
8
|
+
* Copyright 2015 gRPC authors.
|
|
9
|
+
*
|
|
10
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
|
+
* you may not use this file except in compliance with the License.
|
|
12
|
+
* You may obtain a copy of the License at
|
|
13
|
+
*
|
|
14
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
15
|
+
*
|
|
16
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
17
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
18
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
|
+
* See the License for the specific language governing permissions and
|
|
20
|
+
* limitations under the License.
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
const PROTO_PATH_SV = __dirname + './../../../../src/gRPC/ststest/protos/route_guide.proto';
|
|
25
|
+
|
|
26
|
+
import * as grpc from '@grpc/grpc-js';
|
|
27
|
+
import * as protoLoader from '@grpc/proto-loader';
|
|
28
|
+
|
|
29
|
+
//import { IFeature, IPoint, IRectangle, IRouteNote, IRouteSummary } from './commonTypes'
|
|
30
|
+
|
|
31
|
+
import chalk from 'chalk'
|
|
32
|
+
|
|
33
|
+
import fs from 'node:fs'
|
|
34
|
+
|
|
35
|
+
import { ProtoGrpcType } from './../protos/route_guide'
|
|
36
|
+
|
|
37
|
+
import { RouteGuideHandlers } from './../protos/routeguide/RouteGuide'
|
|
38
|
+
import { Point, Point__Output } from '../protos/routeguide/Point';
|
|
39
|
+
import { Feature } from './../protos/routeguide/Feature'
|
|
40
|
+
import { RouteSummary } from './../protos/routeguide/RouteSummary'
|
|
41
|
+
import { RouteNote, RouteNote__Output } from './../protos/routeguide/RouteNote'
|
|
42
|
+
|
|
43
|
+
const packageDefinition = protoLoader.loadSync(
|
|
44
|
+
PROTO_PATH_SV,
|
|
45
|
+
{keepCase: true,
|
|
46
|
+
longs: String,
|
|
47
|
+
enums: String,
|
|
48
|
+
defaults: true,
|
|
49
|
+
oneofs: true
|
|
50
|
+
});
|
|
51
|
+
//const routeguide = grpc.loadPackageDefinition(packageDefinition).routeguide;
|
|
52
|
+
|
|
53
|
+
const routeguide = (grpc.loadPackageDefinition(
|
|
54
|
+
packageDefinition
|
|
55
|
+
) as unknown) as ProtoGrpcType;
|
|
56
|
+
|
|
57
|
+
const exampleServer: RouteGuideHandlers = {
|
|
58
|
+
GetFeature(call, callback) {
|
|
59
|
+
console.log(chalk.grey(`getFeature: call.request: [${JSON.stringify(call.request)}]`));
|
|
60
|
+
const retVal = checkFeature(call.request);
|
|
61
|
+
console.log(chalk.grey(`getFeature: return: [${JSON.stringify(retVal)}]`));
|
|
62
|
+
callback(null, retVal);
|
|
63
|
+
},
|
|
64
|
+
|
|
65
|
+
ListFeatures(call) {
|
|
66
|
+
console.log(chalk.green(`listFeatures: forEach: [${JSON.stringify(call.request)}]`));
|
|
67
|
+
const rectangle = call.request;
|
|
68
|
+
const lo = rectangle.lo;
|
|
69
|
+
const hi = rectangle.hi;
|
|
70
|
+
|
|
71
|
+
const feature_list: Feature[] = [ ];
|
|
72
|
+
for (let i=0; i < 10; i++) {
|
|
73
|
+
feature_list.push({
|
|
74
|
+
location: {
|
|
75
|
+
latitude: (hi as Point__Output).latitude * 2 * (i+1),
|
|
76
|
+
longitude: (lo as Point__Output).longitude * 2 * (i+1)
|
|
77
|
+
},
|
|
78
|
+
name: `the name for index: [${i}]`
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
feature_list.forEach((feature: Feature) => {
|
|
82
|
+
console.log(chalk.green(`listFeatures: forEach: [${JSON.stringify(feature)}]`));
|
|
83
|
+
call.write(feature);
|
|
84
|
+
});
|
|
85
|
+
console.log(chalk.green(`listFeatures: call.end()`));
|
|
86
|
+
call.end();
|
|
87
|
+
},
|
|
88
|
+
|
|
89
|
+
RecordRoute(call, callback) {
|
|
90
|
+
let point_count = 0;
|
|
91
|
+
let feature_count = 0;
|
|
92
|
+
let distance = 0;
|
|
93
|
+
let previous: any = null;
|
|
94
|
+
// Start a timer
|
|
95
|
+
const start_time = process.hrtime();
|
|
96
|
+
call.on('data', function(point: Point__Output) {
|
|
97
|
+
console.log(chalk.magenta(`recordRoute: on data: [${JSON.stringify(point)}]`));
|
|
98
|
+
point_count += 1;
|
|
99
|
+
if (checkFeature(point).name !== '') {
|
|
100
|
+
feature_count += 1;
|
|
101
|
+
}
|
|
102
|
+
/* For each point after the first, add the incremental distance from the
|
|
103
|
+
* previous point to the total distance value */
|
|
104
|
+
if (previous != null) {
|
|
105
|
+
distance += 1;
|
|
106
|
+
}
|
|
107
|
+
previous = point;
|
|
108
|
+
});
|
|
109
|
+
call.on('end', function() {
|
|
110
|
+
const returnData: RouteSummary = {
|
|
111
|
+
pointCount: point_count,
|
|
112
|
+
featureCount: feature_count,
|
|
113
|
+
// Cast the distance to an integer
|
|
114
|
+
distance: distance|0,
|
|
115
|
+
// End the timer
|
|
116
|
+
elapsedTime: process.hrtime(start_time)[0]
|
|
117
|
+
}
|
|
118
|
+
console.log(chalk.magenta(`recordRoute: on end - return data: [${JSON.stringify(returnData)}]`));
|
|
119
|
+
callback(null, returnData);
|
|
120
|
+
});
|
|
121
|
+
},
|
|
122
|
+
|
|
123
|
+
RouteChat(call) {
|
|
124
|
+
call.on('data', function(note: RouteNote__Output) {
|
|
125
|
+
console.log(chalk.cyan(`routeChat: on data: [${JSON.stringify(note)}]`));
|
|
126
|
+
// Send back what we just got
|
|
127
|
+
const sendBack: RouteNote = JSON.parse(JSON.stringify(note));
|
|
128
|
+
sendBack.message = `${note.message} reply message`;
|
|
129
|
+
(sendBack.location as Point).latitude = (note.location as Point__Output).latitude * 2;
|
|
130
|
+
(sendBack.location as Point).longitude = (note.location as Point__Output).longitude * 2;
|
|
131
|
+
console.log(chalk.cyan(`routeChat: sending data: [${JSON.stringify(sendBack)}]`));
|
|
132
|
+
call.write(sendBack);
|
|
133
|
+
});
|
|
134
|
+
call.on('end', function() {
|
|
135
|
+
call.end();
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Get a feature object at the given point, or creates one if it does not exist.
|
|
142
|
+
* @param {point} point The point to check
|
|
143
|
+
* @return {feature} The feature object at the point. Note that an empty name
|
|
144
|
+
* indicates no feature
|
|
145
|
+
*/
|
|
146
|
+
function checkFeature(point: Point__Output): Feature {
|
|
147
|
+
const feature: Feature = {
|
|
148
|
+
name: "Some name",
|
|
149
|
+
location: {
|
|
150
|
+
latitude: point.latitude * 2,
|
|
151
|
+
longitude: point.longitude * 2
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
return feature;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Get a new server with the handler functions in this file bound to the methods
|
|
159
|
+
* it serves.
|
|
160
|
+
* @return {Server} The new server object
|
|
161
|
+
*/
|
|
162
|
+
function getServer() {
|
|
163
|
+
const server = new grpc.Server();
|
|
164
|
+
server.addService(routeguide.routeguide.RouteGuide.service, exampleServer);
|
|
165
|
+
return server;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
// HTTPS_SERVER_KEY_PATH=/etc/letsencrypt/live/stsmda.org/privkey.pem \
|
|
169
|
+
// HTTPS_SERVER_CERT_PATH=/etc/letsencrypt/live/stsmda.org/fullchain.pem \
|
|
170
|
+
|
|
171
|
+
/*
|
|
172
|
+
export interface KeyCertPair {
|
|
173
|
+
private_key: Buffer;
|
|
174
|
+
cert_chain: Buffer;
|
|
175
|
+
}
|
|
176
|
+
*/
|
|
177
|
+
|
|
178
|
+
if (require.main === module) {
|
|
179
|
+
// If this is run as a script, start a server on an unused port
|
|
180
|
+
const routeServer = getServer();
|
|
181
|
+
|
|
182
|
+
// Secure server
|
|
183
|
+
|
|
184
|
+
routeServer.bindAsync('0.0.0.0:3029', grpc.ServerCredentials.createSsl(null,
|
|
185
|
+
[
|
|
186
|
+
{
|
|
187
|
+
private_key: fs.readFileSync('/etc/letsencrypt/live/stsmda.org/privkey.pem'),
|
|
188
|
+
cert_chain: fs.readFileSync('/etc/letsencrypt/live/stsmda.org/fullchain.pem')
|
|
189
|
+
}
|
|
190
|
+
]), (error, port) => {
|
|
191
|
+
if (error) {
|
|
192
|
+
console.log(chalk.red(`Error starting gRPC TLS server on port: [${port}], Error: [${error}]`));
|
|
193
|
+
} else {
|
|
194
|
+
console.log(chalk.green(`Started gRPC TLS server on port: [${port}]`));
|
|
195
|
+
}
|
|
196
|
+
});
|
|
197
|
+
|
|
198
|
+
// Insecure server
|
|
199
|
+
/*
|
|
200
|
+
routeServer.bindAsync('0.0.0.0:3029', grpc.ServerCredentials.createInsecure(),
|
|
201
|
+
(error, port) => {
|
|
202
|
+
if (error) {
|
|
203
|
+
console.log(chalk.red(`Error starting gRPC TLS server on port: [${port}], Error: [${error}]`));
|
|
204
|
+
} else {
|
|
205
|
+
console.log(chalk.green(`Started gRPC TLS server on port: [${port}]`));
|
|
206
|
+
}
|
|
207
|
+
});
|
|
208
|
+
*/
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
exports.getServer = getServer;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type * as grpc from '@grpc/grpc-js';
|
|
2
|
+
import type { MessageTypeDefinition } from '@grpc/proto-loader';
|
|
3
|
+
import type { TestServiceClient as _grpc_testing_TestServiceClient, TestServiceDefinition as _grpc_testing_TestServiceDefinition } from './grpc/testing/TestService';
|
|
4
|
+
type SubtypeConstructor<Constructor extends new (...args: any) => any, Subtype> = {
|
|
5
|
+
new (...args: ConstructorParameters<Constructor>): Subtype;
|
|
6
|
+
};
|
|
7
|
+
export interface ProtoGrpcType {
|
|
8
|
+
grpc: {
|
|
9
|
+
testing: {
|
|
10
|
+
Request: MessageTypeDefinition;
|
|
11
|
+
Response: MessageTypeDefinition;
|
|
12
|
+
TestService: SubtypeConstructor<typeof grpc.Client, _grpc_testing_TestServiceClient> & {
|
|
13
|
+
service: _grpc_testing_TestServiceDefinition;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=auth_sample.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth_sample.d.ts","sourceRoot":"","sources":["../../../../src/gRPC/ststest/protos/auth_sample.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,IAAI,MAAM,eAAe,CAAC;AAC3C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAEhE,OAAO,KAAK,EAAE,iBAAiB,IAAI,+BAA+B,EAAE,qBAAqB,IAAI,mCAAmC,EAAE,MAAM,4BAA4B,CAAC;AAErK,KAAK,kBAAkB,CAAC,WAAW,SAAS,KAAK,GAAG,IAAI,EAAE,GAAG,KAAK,GAAG,EAAE,OAAO,IAAI;IAChF,KAAI,GAAG,IAAI,EAAE,qBAAqB,CAAC,WAAW,CAAC,GAAG,OAAO,CAAC;CAC3D,CAAC;AAEF,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE;QACJ,OAAO,EAAE;YACP,OAAO,EAAE,qBAAqB,CAAA;YAC9B,QAAQ,EAAE,qBAAqB,CAAA;YAC/B,WAAW,EAAE,kBAAkB,CAAC,OAAO,IAAI,CAAC,MAAM,EAAE,+BAA+B,CAAC,GAAG;gBAAE,OAAO,EAAE,mCAAmC,CAAA;aAAE,CAAA;SACxI,CAAA;KACF,CAAA;CACF"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type * as grpc from '@grpc/grpc-js';
|
|
2
|
+
import type { MessageTypeDefinition } from '@grpc/proto-loader';
|
|
3
|
+
import type { EchoClient as _grpc_examples_echo_EchoClient, EchoDefinition as _grpc_examples_echo_EchoDefinition } from './grpc/examples/echo/Echo';
|
|
4
|
+
type SubtypeConstructor<Constructor extends new (...args: any) => any, Subtype> = {
|
|
5
|
+
new (...args: ConstructorParameters<Constructor>): Subtype;
|
|
6
|
+
};
|
|
7
|
+
export interface ProtoGrpcType {
|
|
8
|
+
grpc: {
|
|
9
|
+
examples: {
|
|
10
|
+
echo: {
|
|
11
|
+
Echo: SubtypeConstructor<typeof grpc.Client, _grpc_examples_echo_EchoClient> & {
|
|
12
|
+
service: _grpc_examples_echo_EchoDefinition;
|
|
13
|
+
};
|
|
14
|
+
EchoRequest: MessageTypeDefinition;
|
|
15
|
+
EchoResponse: MessageTypeDefinition;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=echo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"echo.d.ts","sourceRoot":"","sources":["../../../../src/gRPC/ststest/protos/echo.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,IAAI,MAAM,eAAe,CAAC;AAC3C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAEhE,OAAO,KAAK,EAAE,UAAU,IAAI,8BAA8B,EAAE,cAAc,IAAI,kCAAkC,EAAE,MAAM,2BAA2B,CAAC;AAEpJ,KAAK,kBAAkB,CAAC,WAAW,SAAS,KAAK,GAAG,IAAI,EAAE,GAAG,KAAK,GAAG,EAAE,OAAO,IAAI;IAChF,KAAI,GAAG,IAAI,EAAE,qBAAqB,CAAC,WAAW,CAAC,GAAG,OAAO,CAAC;CAC3D,CAAC;AAEF,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE;QACJ,QAAQ,EAAE;YACR,IAAI,EAAE;gBACJ,IAAI,EAAE,kBAAkB,CAAC,OAAO,IAAI,CAAC,MAAM,EAAE,8BAA8B,CAAC,GAAG;oBAAE,OAAO,EAAE,kCAAkC,CAAA;iBAAE,CAAA;gBAC9H,WAAW,EAAE,qBAAqB,CAAA;gBAClC,YAAY,EAAE,qBAAqB,CAAA;aACpC,CAAA;SACF,CAAA;KACF,CAAA;CACF"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type * as grpc from '@grpc/grpc-js';
|
|
2
|
+
import type { MethodDefinition } from '@grpc/proto-loader';
|
|
3
|
+
import type { EchoRequest as _grpc_examples_echo_EchoRequest, EchoRequest__Output as _grpc_examples_echo_EchoRequest__Output } from '../../../grpc/examples/echo/EchoRequest';
|
|
4
|
+
import type { EchoResponse as _grpc_examples_echo_EchoResponse, EchoResponse__Output as _grpc_examples_echo_EchoResponse__Output } from '../../../grpc/examples/echo/EchoResponse';
|
|
5
|
+
export interface EchoClient extends grpc.Client {
|
|
6
|
+
BidirectionalStreamingEcho(metadata: grpc.Metadata, options?: grpc.CallOptions): grpc.ClientDuplexStream<_grpc_examples_echo_EchoRequest, _grpc_examples_echo_EchoResponse__Output>;
|
|
7
|
+
BidirectionalStreamingEcho(options?: grpc.CallOptions): grpc.ClientDuplexStream<_grpc_examples_echo_EchoRequest, _grpc_examples_echo_EchoResponse__Output>;
|
|
8
|
+
bidirectionalStreamingEcho(metadata: grpc.Metadata, options?: grpc.CallOptions): grpc.ClientDuplexStream<_grpc_examples_echo_EchoRequest, _grpc_examples_echo_EchoResponse__Output>;
|
|
9
|
+
bidirectionalStreamingEcho(options?: grpc.CallOptions): grpc.ClientDuplexStream<_grpc_examples_echo_EchoRequest, _grpc_examples_echo_EchoResponse__Output>;
|
|
10
|
+
ClientStreamingEcho(metadata: grpc.Metadata, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_examples_echo_EchoResponse__Output>): grpc.ClientWritableStream<_grpc_examples_echo_EchoRequest>;
|
|
11
|
+
ClientStreamingEcho(metadata: grpc.Metadata, callback: grpc.requestCallback<_grpc_examples_echo_EchoResponse__Output>): grpc.ClientWritableStream<_grpc_examples_echo_EchoRequest>;
|
|
12
|
+
ClientStreamingEcho(options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_examples_echo_EchoResponse__Output>): grpc.ClientWritableStream<_grpc_examples_echo_EchoRequest>;
|
|
13
|
+
ClientStreamingEcho(callback: grpc.requestCallback<_grpc_examples_echo_EchoResponse__Output>): grpc.ClientWritableStream<_grpc_examples_echo_EchoRequest>;
|
|
14
|
+
clientStreamingEcho(metadata: grpc.Metadata, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_examples_echo_EchoResponse__Output>): grpc.ClientWritableStream<_grpc_examples_echo_EchoRequest>;
|
|
15
|
+
clientStreamingEcho(metadata: grpc.Metadata, callback: grpc.requestCallback<_grpc_examples_echo_EchoResponse__Output>): grpc.ClientWritableStream<_grpc_examples_echo_EchoRequest>;
|
|
16
|
+
clientStreamingEcho(options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_examples_echo_EchoResponse__Output>): grpc.ClientWritableStream<_grpc_examples_echo_EchoRequest>;
|
|
17
|
+
clientStreamingEcho(callback: grpc.requestCallback<_grpc_examples_echo_EchoResponse__Output>): grpc.ClientWritableStream<_grpc_examples_echo_EchoRequest>;
|
|
18
|
+
ServerStreamingEcho(argument: _grpc_examples_echo_EchoRequest, metadata: grpc.Metadata, options?: grpc.CallOptions): grpc.ClientReadableStream<_grpc_examples_echo_EchoResponse__Output>;
|
|
19
|
+
ServerStreamingEcho(argument: _grpc_examples_echo_EchoRequest, options?: grpc.CallOptions): grpc.ClientReadableStream<_grpc_examples_echo_EchoResponse__Output>;
|
|
20
|
+
serverStreamingEcho(argument: _grpc_examples_echo_EchoRequest, metadata: grpc.Metadata, options?: grpc.CallOptions): grpc.ClientReadableStream<_grpc_examples_echo_EchoResponse__Output>;
|
|
21
|
+
serverStreamingEcho(argument: _grpc_examples_echo_EchoRequest, options?: grpc.CallOptions): grpc.ClientReadableStream<_grpc_examples_echo_EchoResponse__Output>;
|
|
22
|
+
UnaryEcho(argument: _grpc_examples_echo_EchoRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_examples_echo_EchoResponse__Output>): grpc.ClientUnaryCall;
|
|
23
|
+
UnaryEcho(argument: _grpc_examples_echo_EchoRequest, metadata: grpc.Metadata, callback: grpc.requestCallback<_grpc_examples_echo_EchoResponse__Output>): grpc.ClientUnaryCall;
|
|
24
|
+
UnaryEcho(argument: _grpc_examples_echo_EchoRequest, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_examples_echo_EchoResponse__Output>): grpc.ClientUnaryCall;
|
|
25
|
+
UnaryEcho(argument: _grpc_examples_echo_EchoRequest, callback: grpc.requestCallback<_grpc_examples_echo_EchoResponse__Output>): grpc.ClientUnaryCall;
|
|
26
|
+
unaryEcho(argument: _grpc_examples_echo_EchoRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_examples_echo_EchoResponse__Output>): grpc.ClientUnaryCall;
|
|
27
|
+
unaryEcho(argument: _grpc_examples_echo_EchoRequest, metadata: grpc.Metadata, callback: grpc.requestCallback<_grpc_examples_echo_EchoResponse__Output>): grpc.ClientUnaryCall;
|
|
28
|
+
unaryEcho(argument: _grpc_examples_echo_EchoRequest, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_examples_echo_EchoResponse__Output>): grpc.ClientUnaryCall;
|
|
29
|
+
unaryEcho(argument: _grpc_examples_echo_EchoRequest, callback: grpc.requestCallback<_grpc_examples_echo_EchoResponse__Output>): grpc.ClientUnaryCall;
|
|
30
|
+
}
|
|
31
|
+
export interface EchoHandlers extends grpc.UntypedServiceImplementation {
|
|
32
|
+
BidirectionalStreamingEcho: grpc.handleBidiStreamingCall<_grpc_examples_echo_EchoRequest__Output, _grpc_examples_echo_EchoResponse>;
|
|
33
|
+
ClientStreamingEcho: grpc.handleClientStreamingCall<_grpc_examples_echo_EchoRequest__Output, _grpc_examples_echo_EchoResponse>;
|
|
34
|
+
ServerStreamingEcho: grpc.handleServerStreamingCall<_grpc_examples_echo_EchoRequest__Output, _grpc_examples_echo_EchoResponse>;
|
|
35
|
+
UnaryEcho: grpc.handleUnaryCall<_grpc_examples_echo_EchoRequest__Output, _grpc_examples_echo_EchoResponse>;
|
|
36
|
+
}
|
|
37
|
+
export interface EchoDefinition extends grpc.ServiceDefinition {
|
|
38
|
+
BidirectionalStreamingEcho: MethodDefinition<_grpc_examples_echo_EchoRequest, _grpc_examples_echo_EchoResponse, _grpc_examples_echo_EchoRequest__Output, _grpc_examples_echo_EchoResponse__Output>;
|
|
39
|
+
ClientStreamingEcho: MethodDefinition<_grpc_examples_echo_EchoRequest, _grpc_examples_echo_EchoResponse, _grpc_examples_echo_EchoRequest__Output, _grpc_examples_echo_EchoResponse__Output>;
|
|
40
|
+
ServerStreamingEcho: MethodDefinition<_grpc_examples_echo_EchoRequest, _grpc_examples_echo_EchoResponse, _grpc_examples_echo_EchoRequest__Output, _grpc_examples_echo_EchoResponse__Output>;
|
|
41
|
+
UnaryEcho: MethodDefinition<_grpc_examples_echo_EchoRequest, _grpc_examples_echo_EchoResponse, _grpc_examples_echo_EchoRequest__Output, _grpc_examples_echo_EchoResponse__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ClM,mBAAmB,EAAE,gBAAgB,CAAC,+BAA+B,EAAE,gCAAgC,EAAE,uCAAuC,EAAE,wCAAwC,CAAC,CAAA;IAC3L,mBAAmB,EAAE,gBAAgB,CAAC,+BAA+B,EAAE,gCAAgC,EAAE,uCAAuC,EAAE,wCAAwC,CAAC,CAAA;IAC3L,SAAS,EAAE,gBAAgB,CAAC,+BAA+B,EAAE,gCAAgC,EAAE,uCAAuC,EAAE,wCAAwC,CAAC,CAAA;CAClL"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EchoRequest.d.ts","sourceRoot":"","sources":["../../../../../../../src/gRPC/ststest/protos/grpc/examples/echo/EchoRequest.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,WAAW;IAC1B,SAAS,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;CACtB;AAED,MAAM,WAAW,mBAAmB;IAClC,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC;CACrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EchoResponse.d.ts","sourceRoot":"","sources":["../../../../../../../src/gRPC/ststest/protos/grpc/examples/echo/EchoResponse.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,YAAY;IAC3B,SAAS,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;CACtB;AAED,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC;CACrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Request.d.ts","sourceRoot":"","sources":["../../../../../../src/gRPC/ststest/protos/grpc/testing/Request.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,OAAO;IACtB,cAAc,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC;IAC3B,gBAAgB,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC;CAC9B;AAED,MAAM,WAAW,eAAe;IAC9B,cAAc,EAAE,CAAC,OAAO,CAAC,CAAC;IAC1B,gBAAgB,EAAE,CAAC,OAAO,CAAC,CAAC;CAC7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Response.d.ts","sourceRoot":"","sources":["../../../../../../src/gRPC/ststest/protos/grpc/testing/Response.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,QAAQ;IACvB,UAAU,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;IACtB,YAAY,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;CACzB;AAED,MAAM,WAAW,gBAAgB;IAC/B,UAAU,EAAE,CAAC,MAAM,CAAC,CAAC;IACrB,YAAY,EAAE,CAAC,MAAM,CAAC,CAAC;CACxB"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type * as grpc from '@grpc/grpc-js';
|
|
2
|
+
import type { MethodDefinition } from '@grpc/proto-loader';
|
|
3
|
+
import type { Request as _grpc_testing_Request, Request__Output as _grpc_testing_Request__Output } from '../../grpc/testing/Request';
|
|
4
|
+
import type { Response as _grpc_testing_Response, Response__Output as _grpc_testing_Response__Output } from '../../grpc/testing/Response';
|
|
5
|
+
export interface TestServiceClient extends grpc.Client {
|
|
6
|
+
UnaryCall(argument: _grpc_testing_Request, metadata: grpc.Metadata, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_testing_Response__Output>): grpc.ClientUnaryCall;
|
|
7
|
+
UnaryCall(argument: _grpc_testing_Request, metadata: grpc.Metadata, callback: grpc.requestCallback<_grpc_testing_Response__Output>): grpc.ClientUnaryCall;
|
|
8
|
+
UnaryCall(argument: _grpc_testing_Request, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_testing_Response__Output>): grpc.ClientUnaryCall;
|
|
9
|
+
UnaryCall(argument: _grpc_testing_Request, callback: grpc.requestCallback<_grpc_testing_Response__Output>): grpc.ClientUnaryCall;
|
|
10
|
+
unaryCall(argument: _grpc_testing_Request, metadata: grpc.Metadata, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_testing_Response__Output>): grpc.ClientUnaryCall;
|
|
11
|
+
unaryCall(argument: _grpc_testing_Request, metadata: grpc.Metadata, callback: grpc.requestCallback<_grpc_testing_Response__Output>): grpc.ClientUnaryCall;
|
|
12
|
+
unaryCall(argument: _grpc_testing_Request, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_testing_Response__Output>): grpc.ClientUnaryCall;
|
|
13
|
+
unaryCall(argument: _grpc_testing_Request, callback: grpc.requestCallback<_grpc_testing_Response__Output>): grpc.ClientUnaryCall;
|
|
14
|
+
}
|
|
15
|
+
export interface TestServiceHandlers extends grpc.UntypedServiceImplementation {
|
|
16
|
+
UnaryCall: grpc.handleUnaryCall<_grpc_testing_Request__Output, _grpc_testing_Response>;
|
|
17
|
+
}
|
|
18
|
+
export interface TestServiceDefinition extends grpc.ServiceDefinition {
|
|
19
|
+
UnaryCall: MethodDefinition<_grpc_testing_Request, _grpc_testing_Response, _grpc_testing_Request__Output, _grpc_testing_Response__Output>;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=TestService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TestService.d.ts","sourceRoot":"","sources":["../../../../../../src/gRPC/ststest/protos/grpc/testing/TestService.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,IAAI,MAAM,eAAe,CAAA;AAC1C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAC1D,OAAO,KAAK,EAAE,OAAO,IAAI,qBAAqB,EAAE,eAAe,IAAI,6BAA6B,EAAE,MAAM,4BAA4B,CAAC;AACrI,OAAO,KAAK,EAAE,QAAQ,IAAI,sBAAsB,EAAE,gBAAgB,IAAI,8BAA8B,EAAE,MAAM,6BAA6B,CAAC;AAE1I,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,MAAM;IACpD,SAAS,CAAC,QAAQ,EAAE,qBAAqB,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,OAAO,EAAE,I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AAED,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAAC,4BAA4B;IAC5E,SAAS,EAAE,IAAI,CAAC,eAAe,CAAC,6BAA6B,EAAE,sBAAsB,CAAC,CAAC;CAExF;AAED,MAAM,WAAW,qBAAsB,SAAQ,IAAI,CAAC,iBAAiB;IACnE,SAAS,EAAE,gBAAgB,CAAC,qBAAqB,EAAE,sBAAsB,EAAE,6BAA6B,EAAE,8BAA8B,CAAC,CAAA;CAC1I"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HelloReply.d.ts","sourceRoot":"","sources":["../../../../../src/gRPC/ststest/protos/hellostreamingworld/HelloReply.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,UAAU;IACzB,SAAS,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;CACtB;AAED,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC;CACrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HelloRequest.d.ts","sourceRoot":"","sources":["../../../../../src/gRPC/ststest/protos/hellostreamingworld/HelloRequest.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;IAClB,cAAc,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;CAC3B;AAED,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,CAAC,MAAM,CAAC,CAAC;IACjB,cAAc,EAAE,CAAC,MAAM,CAAC,CAAC;CAC1B"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type * as grpc from '@grpc/grpc-js';
|
|
2
|
+
import type { MethodDefinition } from '@grpc/proto-loader';
|
|
3
|
+
import type { HelloReply as _hellostreamingworld_HelloReply, HelloReply__Output as _hellostreamingworld_HelloReply__Output } from '../hellostreamingworld/HelloReply';
|
|
4
|
+
import type { HelloRequest as _hellostreamingworld_HelloRequest, HelloRequest__Output as _hellostreamingworld_HelloRequest__Output } from '../hellostreamingworld/HelloRequest';
|
|
5
|
+
export interface MultiGreeterClient extends grpc.Client {
|
|
6
|
+
sayHello(argument: _hellostreamingworld_HelloRequest, metadata: grpc.Metadata, options?: grpc.CallOptions): grpc.ClientReadableStream<_hellostreamingworld_HelloReply__Output>;
|
|
7
|
+
sayHello(argument: _hellostreamingworld_HelloRequest, options?: grpc.CallOptions): grpc.ClientReadableStream<_hellostreamingworld_HelloReply__Output>;
|
|
8
|
+
sayHello(argument: _hellostreamingworld_HelloRequest, metadata: grpc.Metadata, options?: grpc.CallOptions): grpc.ClientReadableStream<_hellostreamingworld_HelloReply__Output>;
|
|
9
|
+
sayHello(argument: _hellostreamingworld_HelloRequest, options?: grpc.CallOptions): grpc.ClientReadableStream<_hellostreamingworld_HelloReply__Output>;
|
|
10
|
+
}
|
|
11
|
+
export interface MultiGreeterHandlers extends grpc.UntypedServiceImplementation {
|
|
12
|
+
sayHello: grpc.handleServerStreamingCall<_hellostreamingworld_HelloRequest__Output, _hellostreamingworld_HelloReply>;
|
|
13
|
+
}
|
|
14
|
+
export interface MultiGreeterDefinition extends grpc.ServiceDefinition {
|
|
15
|
+
sayHello: MethodDefinition<_hellostreamingworld_HelloRequest, _hellostreamingworld_HelloReply, _hellostreamingworld_HelloRequest__Output, _hellostreamingworld_HelloReply__Output>;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=MultiGreeter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MultiGreeter.d.ts","sourceRoot":"","sources":["../../../../../src/gRPC/ststest/protos/hellostreamingworld/MultiGreeter.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,IAAI,MAAM,eAAe,CAAA;AAC1C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAC1D,OAAO,KAAK,EAAE,UAAU,IAAI,+BAA+B,EAAE,kBAAkB,IAAI,uCAAuC,EAAE,MAA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GreeterClient as _hellostreamingworld_MultiGreeterClient, MultiGreeterDefinition as _hellostreamingworld_MultiGreeterDefinition } from './hellostreamingworld/MultiGreeter';
|
|
4
|
+
type SubtypeConstructor<Constructor extends new (...args: any) => any, Subtype> = {
|
|
5
|
+
new (...args: ConstructorParameters<Constructor>): Subtype;
|
|
6
|
+
};
|
|
7
|
+
export interface ProtoGrpcType {
|
|
8
|
+
hellostreamingworld: {
|
|
9
|
+
HelloReply: MessageTypeDefinition;
|
|
10
|
+
HelloRequest: MessageTypeDefinition;
|
|
11
|
+
MultiGreeter: SubtypeConstructor<typeof grpc.Client, _hellostreamingworld_MultiGreeterClient> & {
|
|
12
|
+
service: _hellostreamingworld_MultiGreeterDefinition;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=hellostreamingworld.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hellostreamingworld.d.ts","sourceRoot":"","sources":["../../../../src/gRPC/ststest/protos/hellostreamingworld.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,IAAI,MAAM,eAAe,CAAC;AAC3C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAEhE,OAAO,KAAK,EAAE,kBAAkB,IAAI,uCAAuC,EAAE,sBAAsB,IAAI,2CAA2C,EAAE,MAAM,oCAAoC,CAAC;AAE/L,KAAK,kBAAkB,CAAC,WAAW,SAAS,KAAK,GAAG,IAAI,EAAE,GAAG,KAAK,GAAG,EAAE,OAAO,IAAI;IAChF,KAAI,GAAG,IAAI,EAAE,qBAAqB,CAAC,WAAW,CAAC,GAAG,OAAO,CAAC;CAC3D,CAAC;AAEF,MAAM,WAAW,aAAa;IAC5B,mBAAmB,EAAE;QACnB,UAAU,EAAE,qBAAqB,CAAA;QACjC,YAAY,EAAE,qBAAqB,CAAA;QACnC,YAAY,EAAE,kBAAkB,CAAC,OAAO,IAAI,CAAC,MAAM,EAAE,uCAAuC,CAAC,GAAG;YAAE,OAAO,EAAE,2CAA2C,CAAA;SAAE,CAAA;KACzJ,CAAA;CACF"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type * as grpc from '@grpc/grpc-js';
|
|
2
|
+
import type { MethodDefinition } from '@grpc/proto-loader';
|
|
3
|
+
import type { HelloReply as _helloworld_HelloReply, HelloReply__Output as _helloworld_HelloReply__Output } from '../helloworld/HelloReply';
|
|
4
|
+
import type { HelloRequest as _helloworld_HelloRequest, HelloRequest__Output as _helloworld_HelloRequest__Output } from '../helloworld/HelloRequest';
|
|
5
|
+
export interface GreeterClient extends grpc.Client {
|
|
6
|
+
SayHello(argument: _helloworld_HelloRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: grpc.requestCallback<_helloworld_HelloReply__Output>): grpc.ClientUnaryCall;
|
|
7
|
+
SayHello(argument: _helloworld_HelloRequest, metadata: grpc.Metadata, callback: grpc.requestCallback<_helloworld_HelloReply__Output>): grpc.ClientUnaryCall;
|
|
8
|
+
SayHello(argument: _helloworld_HelloRequest, options: grpc.CallOptions, callback: grpc.requestCallback<_helloworld_HelloReply__Output>): grpc.ClientUnaryCall;
|
|
9
|
+
SayHello(argument: _helloworld_HelloRequest, callback: grpc.requestCallback<_helloworld_HelloReply__Output>): grpc.ClientUnaryCall;
|
|
10
|
+
sayHello(argument: _helloworld_HelloRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: grpc.requestCallback<_helloworld_HelloReply__Output>): grpc.ClientUnaryCall;
|
|
11
|
+
sayHello(argument: _helloworld_HelloRequest, metadata: grpc.Metadata, callback: grpc.requestCallback<_helloworld_HelloReply__Output>): grpc.ClientUnaryCall;
|
|
12
|
+
sayHello(argument: _helloworld_HelloRequest, options: grpc.CallOptions, callback: grpc.requestCallback<_helloworld_HelloReply__Output>): grpc.ClientUnaryCall;
|
|
13
|
+
sayHello(argument: _helloworld_HelloRequest, callback: grpc.requestCallback<_helloworld_HelloReply__Output>): grpc.ClientUnaryCall;
|
|
14
|
+
SayHelloStreamReply(argument: _helloworld_HelloRequest, metadata: grpc.Metadata, options?: grpc.CallOptions): grpc.ClientReadableStream<_helloworld_HelloReply__Output>;
|
|
15
|
+
SayHelloStreamReply(argument: _helloworld_HelloRequest, options?: grpc.CallOptions): grpc.ClientReadableStream<_helloworld_HelloReply__Output>;
|
|
16
|
+
sayHelloStreamReply(argument: _helloworld_HelloRequest, metadata: grpc.Metadata, options?: grpc.CallOptions): grpc.ClientReadableStream<_helloworld_HelloReply__Output>;
|
|
17
|
+
sayHelloStreamReply(argument: _helloworld_HelloRequest, options?: grpc.CallOptions): grpc.ClientReadableStream<_helloworld_HelloReply__Output>;
|
|
18
|
+
}
|
|
19
|
+
export interface GreeterHandlers extends grpc.UntypedServiceImplementation {
|
|
20
|
+
SayHello: grpc.handleUnaryCall<_helloworld_HelloRequest__Output, _helloworld_HelloReply>;
|
|
21
|
+
SayHelloStreamReply: grpc.handleServerStreamingCall<_helloworld_HelloRequest__Output, _helloworld_HelloReply>;
|
|
22
|
+
}
|
|
23
|
+
export interface GreeterDefinition extends grpc.ServiceDefinition {
|
|
24
|
+
SayHello: MethodDefinition<_helloworld_HelloRequest, _helloworld_HelloReply, _helloworld_HelloRequest__Output, _helloworld_HelloReply__Output>;
|
|
25
|
+
SayHelloStreamReply: MethodDefinition<_helloworld_HelloRequest, _helloworld_HelloReply, _helloworld_HelloRequest__Output, _helloworld_HelloReply__Output>;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=Greeter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Greeter.d.ts","sourceRoot":"","sources":["../../../../../src/gRPC/ststest/protos/helloworld/Greeter.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,IAAI,MAAM,eAAe,CAAA;AAC1C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAC1D,OAAO,KAAK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AAC,iBAAiB;IAC/D,QAAQ,EAAE,gBAAgB,CAAC,wBAAwB,EAAE,sBAAsB,EAAE,gCAAgC,EAAE,8BAA8B,CAAC,CAAA;IAC9I,mBAAmB,EAAE,gBAAgB,CAAC,wBAAwB,EAAE,sBAAsB,EAAE,gCAAgC,EAAE,8BAA8B,CAAC,CAAA;CAC1J"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HelloReply.d.ts","sourceRoot":"","sources":["../../../../../src/gRPC/ststest/protos/helloworld/HelloReply.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,UAAU;IACzB,SAAS,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;CACtB;AAED,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC;CACrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HelloRequest.d.ts","sourceRoot":"","sources":["../../../../../src/gRPC/ststest/protos/helloworld/HelloRequest.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;CACnB;AAED,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,CAAC,MAAM,CAAC,CAAC;CAClB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type * as grpc from '@grpc/grpc-js';
|
|
2
|
+
import type { MessageTypeDefinition } from '@grpc/proto-loader';
|
|
3
|
+
import type { GreeterClient as _helloworld_GreeterClient, GreeterDefinition as _helloworld_GreeterDefinition } from './helloworld/Greeter';
|
|
4
|
+
type SubtypeConstructor<Constructor extends new (...args: any) => any, Subtype> = {
|
|
5
|
+
new (...args: ConstructorParameters<Constructor>): Subtype;
|
|
6
|
+
};
|
|
7
|
+
export interface ProtoGrpcType {
|
|
8
|
+
helloworld: {
|
|
9
|
+
Greeter: SubtypeConstructor<typeof grpc.Client, _helloworld_GreeterClient> & {
|
|
10
|
+
service: _helloworld_GreeterDefinition;
|
|
11
|
+
};
|
|
12
|
+
HelloReply: MessageTypeDefinition;
|
|
13
|
+
HelloRequest: MessageTypeDefinition;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=helloworld.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helloworld.d.ts","sourceRoot":"","sources":["../../../../src/gRPC/ststest/protos/helloworld.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,IAAI,MAAM,eAAe,CAAC;AAC3C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAEhE,OAAO,KAAK,EAAE,aAAa,IAAI,yBAAyB,EAAE,iBAAiB,IAAI,6BAA6B,EAAE,MAAM,sBAAsB,CAAC;AAE3I,KAAK,kBAAkB,CAAC,WAAW,SAAS,KAAK,GAAG,IAAI,EAAE,GAAG,KAAK,GAAG,EAAE,OAAO,IAAI;IAChF,KAAI,GAAG,IAAI,EAAE,qBAAqB,CAAC,WAAW,CAAC,GAAG,OAAO,CAAC;CAC3D,CAAC;AAEF,MAAM,WAAW,aAAa;IAC5B,UAAU,EAAE;QACV,OAAO,EAAE,kBAAkB,CAAC,OAAO,IAAI,CAAC,MAAM,EAAE,yBAAyB,CAAC,GAAG;YAAE,OAAO,EAAE,6BAA6B,CAAA;SAAE,CAAA;QACvH,UAAU,EAAE,qBAAqB,CAAA;QACjC,YAAY,EAAE,qBAAqB,CAAA;KACpC,CAAA;CACF"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type * as grpc from '@grpc/grpc-js';
|
|
2
|
+
import type { MethodDefinition } from '@grpc/proto-loader';
|
|
3
|
+
import type { Request as _keyvaluestore_Request, Request__Output as _keyvaluestore_Request__Output } from '../keyvaluestore/Request';
|
|
4
|
+
import type { Response as _keyvaluestore_Response, Response__Output as _keyvaluestore_Response__Output } from '../keyvaluestore/Response';
|
|
5
|
+
export interface KeyValueStoreClient extends grpc.Client {
|
|
6
|
+
GetValues(metadata: grpc.Metadata, options?: grpc.CallOptions): grpc.ClientDuplexStream<_keyvaluestore_Request, _keyvaluestore_Response__Output>;
|
|
7
|
+
GetValues(options?: grpc.CallOptions): grpc.ClientDuplexStream<_keyvaluestore_Request, _keyvaluestore_Response__Output>;
|
|
8
|
+
getValues(metadata: grpc.Metadata, options?: grpc.CallOptions): grpc.ClientDuplexStream<_keyvaluestore_Request, _keyvaluestore_Response__Output>;
|
|
9
|
+
getValues(options?: grpc.CallOptions): grpc.ClientDuplexStream<_keyvaluestore_Request, _keyvaluestore_Response__Output>;
|
|
10
|
+
}
|
|
11
|
+
export interface KeyValueStoreHandlers extends grpc.UntypedServiceImplementation {
|
|
12
|
+
GetValues: grpc.handleBidiStreamingCall<_keyvaluestore_Request__Output, _keyvaluestore_Response>;
|
|
13
|
+
}
|
|
14
|
+
export interface KeyValueStoreDefinition extends grpc.ServiceDefinition {
|
|
15
|
+
GetValues: MethodDefinition<_keyvaluestore_Request, _keyvaluestore_Response, _keyvaluestore_Request__Output, _keyvaluestore_Response__Output>;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=KeyValueStore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KeyValueStore.d.ts","sourceRoot":"","sources":["../../../../../src/gRPC/ststest/protos/keyvaluestore/KeyValueStore.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,IAAI,MAAM,eAAe,CAAA;AAC1C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAC1D,OAAO,KAAK,EAAE,OAAO,IAAI,sBAAsB,EAAE,eAAe,IAAI,8BAA8B,EAAE,MAAM,0BAA0B,CAAC;AACrI,OAAO,KAAK,EAAE,QAAQ,IAAI,uBAAuB,EAAE,gBAAgB,IAAI,+BAA+B,EAAE,MAAM,2BAA2B,CAAC;AAE1I,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAAC,MAAM;IACtD,SAAS,CAAC,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,kBAAkB,CAAC,sBAAsB,EAAE,+BAA+B,CAAC,CAAC;IACjJ,SAAS,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,kBAAkB,CAAC,sBAAsB,EAAE,+BAA+B,CAAC,CAAC;IACxH,SAAS,CAAC,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,kBAAkB,CAAC,sBAAsB,EAAE,+BAA+B,CAAC,CAAC;IACjJ,SAAS,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,kBAAkB,CAAC,sBAAsB,EAAE,+BAA+B,CAAC,CAAC;CAEzH;AAED,MAAM,WAAW,qBAAsB,SAAQ,IAAI,CAAC,4BAA4B;IAC9E,SAAS,EAAE,IAAI,CAAC,uBAAuB,CAAC,8BAA8B,EAAE,uBAAuB,CAAC,CAAC;CAElG;AAED,MAAM,WAAW,uBAAwB,SAAQ,IAAI,CAAC,iBAAiB;IACrE,SAAS,EAAE,gBAAgB,CAAC,sBAAsB,EAAE,uBAAuB,EAAE,8BAA8B,EAAE,+BAA+B,CAAC,CAAA;CAC9I"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Request.d.ts","sourceRoot":"","sources":["../../../../../src/gRPC/ststest/protos/keyvaluestore/Request.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,OAAO;IACtB,KAAK,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,CAAC,MAAM,CAAC,CAAC;CACjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Response.d.ts","sourceRoot":"","sources":["../../../../../src/gRPC/ststest/protos/keyvaluestore/Response.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,QAAQ;IACvB,OAAO,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;CACpB;AAED,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,CAAC,MAAM,CAAC,CAAC;CACnB"}
|