@nsshunt/stsappframework 3.1.31 → 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_server2.js +205 -0
- package/dist/gRPC/ststest/src/route_guide_server2.js.map +1 -0
- package/package.json +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_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 @@
|
|
|
1
|
+
{"version":3,"file":"auth_sample.js","sourceRoot":"","sources":["../../../../src/gRPC/ststest/protos/auth_sample.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"echo.js","sourceRoot":"","sources":["../../../../src/gRPC/ststest/protos/echo.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Echo.js","sourceRoot":"","sources":["../../../../../../../src/gRPC/ststest/protos/grpc/examples/echo/Echo.ts"],"names":[],"mappings":";AAAA,mCAAmC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EchoRequest.js","sourceRoot":"","sources":["../../../../../../../src/gRPC/ststest/protos/grpc/examples/echo/EchoRequest.ts"],"names":[],"mappings":";AAAA,mCAAmC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EchoResponse.js","sourceRoot":"","sources":["../../../../../../../src/gRPC/ststest/protos/grpc/examples/echo/EchoResponse.ts"],"names":[],"mappings":";AAAA,mCAAmC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../../../../src/gRPC/ststest/protos/grpc/testing/Request.ts"],"names":[],"mappings":";AAAA,0CAA0C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../../../../src/gRPC/ststest/protos/grpc/testing/Response.ts"],"names":[],"mappings":";AAAA,0CAA0C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TestService.js","sourceRoot":"","sources":["../../../../../../src/gRPC/ststest/protos/grpc/testing/TestService.ts"],"names":[],"mappings":";AAAA,0CAA0C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HelloReply.js","sourceRoot":"","sources":["../../../../../src/gRPC/ststest/protos/hellostreamingworld/HelloReply.ts"],"names":[],"mappings":";AAAA,kDAAkD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HelloRequest.js","sourceRoot":"","sources":["../../../../../src/gRPC/ststest/protos/hellostreamingworld/HelloRequest.ts"],"names":[],"mappings":";AAAA,kDAAkD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MultiGreeter.js","sourceRoot":"","sources":["../../../../../src/gRPC/ststest/protos/hellostreamingworld/MultiGreeter.ts"],"names":[],"mappings":";AAAA,kDAAkD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hellostreamingworld.js","sourceRoot":"","sources":["../../../../src/gRPC/ststest/protos/hellostreamingworld.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Greeter.js","sourceRoot":"","sources":["../../../../../src/gRPC/ststest/protos/helloworld/Greeter.ts"],"names":[],"mappings":";AAAA,yCAAyC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HelloReply.js","sourceRoot":"","sources":["../../../../../src/gRPC/ststest/protos/helloworld/HelloReply.ts"],"names":[],"mappings":";AAAA,yCAAyC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HelloRequest.js","sourceRoot":"","sources":["../../../../../src/gRPC/ststest/protos/helloworld/HelloRequest.ts"],"names":[],"mappings":";AAAA,yCAAyC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helloworld.js","sourceRoot":"","sources":["../../../../src/gRPC/ststest/protos/helloworld.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KeyValueStore.js","sourceRoot":"","sources":["../../../../../src/gRPC/ststest/protos/keyvaluestore/KeyValueStore.ts"],"names":[],"mappings":";AAAA,4CAA4C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../../../src/gRPC/ststest/protos/keyvaluestore/Request.ts"],"names":[],"mappings":";AAAA,4CAA4C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../../../src/gRPC/ststest/protos/keyvaluestore/Response.ts"],"names":[],"mappings":";AAAA,4CAA4C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keyvaluestore.js","sourceRoot":"","sources":["../../../../src/gRPC/ststest/protos/keyvaluestore.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"route_guide.js","sourceRoot":"","sources":["../../../../src/gRPC/ststest/protos/route_guide.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Feature.js","sourceRoot":"","sources":["../../../../../src/gRPC/ststest/protos/routeguide/Feature.ts"],"names":[],"mappings":";AAAA,0CAA0C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Point.js","sourceRoot":"","sources":["../../../../../src/gRPC/ststest/protos/routeguide/Point.ts"],"names":[],"mappings":";AAAA,0CAA0C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Rectangle.js","sourceRoot":"","sources":["../../../../../src/gRPC/ststest/protos/routeguide/Rectangle.ts"],"names":[],"mappings":";AAAA,0CAA0C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RouteGuide.js","sourceRoot":"","sources":["../../../../../src/gRPC/ststest/protos/routeguide/RouteGuide.ts"],"names":[],"mappings":";AAAA,0CAA0C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RouteNote.js","sourceRoot":"","sources":["../../../../../src/gRPC/ststest/protos/routeguide/RouteNote.ts"],"names":[],"mappings":";AAAA,0CAA0C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RouteSummary.js","sourceRoot":"","sources":["../../../../../src/gRPC/ststest/protos/routeguide/RouteSummary.ts"],"names":[],"mappings":";AAAA,0CAA0C"}
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint @typescript-eslint/no-explicit-any: 0 */ // --> OFF
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
20
|
+
if (mod && mod.__esModule) return mod;
|
|
21
|
+
var result = {};
|
|
22
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
23
|
+
__setModuleDefault(result, mod);
|
|
24
|
+
return result;
|
|
25
|
+
};
|
|
26
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
27
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
28
|
+
};
|
|
29
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
+
// cd /home/marcusbettens/projects/stsappframework/src/gRPC/ststest
|
|
31
|
+
// npx proto-loader-gen-types --longs=String --enums=String --defaults --oneofs --grpcLib=@grpc/grpc-js --outDir=protos/ protos/*.proto
|
|
32
|
+
/*
|
|
33
|
+
*
|
|
34
|
+
* Copyright 2015 gRPC authors.
|
|
35
|
+
*
|
|
36
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
37
|
+
* you may not use this file except in compliance with the License.
|
|
38
|
+
* You may obtain a copy of the License at
|
|
39
|
+
*
|
|
40
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
41
|
+
*
|
|
42
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
43
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
44
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
45
|
+
* See the License for the specific language governing permissions and
|
|
46
|
+
* limitations under the License.
|
|
47
|
+
*
|
|
48
|
+
*/
|
|
49
|
+
const PROTO_PATH_SV = __dirname + './../../../../src/gRPC/ststest/protos/route_guide.proto';
|
|
50
|
+
const grpc = __importStar(require("@grpc/grpc-js"));
|
|
51
|
+
const protoLoader = __importStar(require("@grpc/proto-loader"));
|
|
52
|
+
//import { IFeature, IPoint, IRectangle, IRouteNote, IRouteSummary } from './commonTypes'
|
|
53
|
+
const chalk_1 = __importDefault(require("chalk"));
|
|
54
|
+
const node_fs_1 = __importDefault(require("node:fs"));
|
|
55
|
+
const packageDefinition = protoLoader.loadSync(PROTO_PATH_SV, { keepCase: true,
|
|
56
|
+
longs: String,
|
|
57
|
+
enums: String,
|
|
58
|
+
defaults: true,
|
|
59
|
+
oneofs: true
|
|
60
|
+
});
|
|
61
|
+
//const routeguide = grpc.loadPackageDefinition(packageDefinition).routeguide;
|
|
62
|
+
const routeguide = grpc.loadPackageDefinition(packageDefinition);
|
|
63
|
+
const exampleServer = {
|
|
64
|
+
GetFeature(call, callback) {
|
|
65
|
+
console.log(chalk_1.default.grey(`getFeature: call.request: [${JSON.stringify(call.request)}]`));
|
|
66
|
+
const retVal = checkFeature(call.request);
|
|
67
|
+
console.log(chalk_1.default.grey(`getFeature: return: [${JSON.stringify(retVal)}]`));
|
|
68
|
+
callback(null, retVal);
|
|
69
|
+
},
|
|
70
|
+
ListFeatures(call) {
|
|
71
|
+
console.log(chalk_1.default.green(`listFeatures: forEach: [${JSON.stringify(call.request)}]`));
|
|
72
|
+
const rectangle = call.request;
|
|
73
|
+
const lo = rectangle.lo;
|
|
74
|
+
const hi = rectangle.hi;
|
|
75
|
+
const feature_list = [];
|
|
76
|
+
for (let i = 0; i < 10; i++) {
|
|
77
|
+
feature_list.push({
|
|
78
|
+
location: {
|
|
79
|
+
latitude: hi.latitude * 2 * (i + 1),
|
|
80
|
+
longitude: lo.longitude * 2 * (i + 1)
|
|
81
|
+
},
|
|
82
|
+
name: `the name for index: [${i}]`
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
feature_list.forEach((feature) => {
|
|
86
|
+
console.log(chalk_1.default.green(`listFeatures: forEach: [${JSON.stringify(feature)}]`));
|
|
87
|
+
call.write(feature);
|
|
88
|
+
});
|
|
89
|
+
console.log(chalk_1.default.green(`listFeatures: call.end()`));
|
|
90
|
+
call.end();
|
|
91
|
+
},
|
|
92
|
+
RecordRoute(call, callback) {
|
|
93
|
+
let point_count = 0;
|
|
94
|
+
let feature_count = 0;
|
|
95
|
+
let distance = 0;
|
|
96
|
+
let previous = null;
|
|
97
|
+
// Start a timer
|
|
98
|
+
const start_time = process.hrtime();
|
|
99
|
+
call.on('data', function (point) {
|
|
100
|
+
console.log(chalk_1.default.magenta(`recordRoute: on data: [${JSON.stringify(point)}]`));
|
|
101
|
+
point_count += 1;
|
|
102
|
+
if (checkFeature(point).name !== '') {
|
|
103
|
+
feature_count += 1;
|
|
104
|
+
}
|
|
105
|
+
/* For each point after the first, add the incremental distance from the
|
|
106
|
+
* previous point to the total distance value */
|
|
107
|
+
if (previous != null) {
|
|
108
|
+
distance += 1;
|
|
109
|
+
}
|
|
110
|
+
previous = point;
|
|
111
|
+
});
|
|
112
|
+
call.on('end', function () {
|
|
113
|
+
const returnData = {
|
|
114
|
+
pointCount: point_count,
|
|
115
|
+
featureCount: feature_count,
|
|
116
|
+
// Cast the distance to an integer
|
|
117
|
+
distance: distance | 0,
|
|
118
|
+
// End the timer
|
|
119
|
+
elapsedTime: process.hrtime(start_time)[0]
|
|
120
|
+
};
|
|
121
|
+
console.log(chalk_1.default.magenta(`recordRoute: on end - return data: [${JSON.stringify(returnData)}]`));
|
|
122
|
+
callback(null, returnData);
|
|
123
|
+
});
|
|
124
|
+
},
|
|
125
|
+
RouteChat(call) {
|
|
126
|
+
call.on('data', function (note) {
|
|
127
|
+
console.log(chalk_1.default.cyan(`routeChat: on data: [${JSON.stringify(note)}]`));
|
|
128
|
+
// Send back what we just got
|
|
129
|
+
const sendBack = JSON.parse(JSON.stringify(note));
|
|
130
|
+
sendBack.message = `${note.message} reply message`;
|
|
131
|
+
sendBack.location.latitude = note.location.latitude * 2;
|
|
132
|
+
sendBack.location.longitude = note.location.longitude * 2;
|
|
133
|
+
console.log(chalk_1.default.cyan(`routeChat: sending data: [${JSON.stringify(sendBack)}]`));
|
|
134
|
+
call.write(sendBack);
|
|
135
|
+
});
|
|
136
|
+
call.on('end', function () {
|
|
137
|
+
call.end();
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
};
|
|
141
|
+
/**
|
|
142
|
+
* Get a feature object at the given point, or creates one if it does not exist.
|
|
143
|
+
* @param {point} point The point to check
|
|
144
|
+
* @return {feature} The feature object at the point. Note that an empty name
|
|
145
|
+
* indicates no feature
|
|
146
|
+
*/
|
|
147
|
+
function checkFeature(point) {
|
|
148
|
+
const feature = {
|
|
149
|
+
name: "Some name",
|
|
150
|
+
location: {
|
|
151
|
+
latitude: point.latitude * 2,
|
|
152
|
+
longitude: point.longitude * 2
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
return feature;
|
|
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
|
+
// HTTPS_SERVER_KEY_PATH=/etc/letsencrypt/live/stsmda.org/privkey.pem \
|
|
168
|
+
// HTTPS_SERVER_CERT_PATH=/etc/letsencrypt/live/stsmda.org/fullchain.pem \
|
|
169
|
+
/*
|
|
170
|
+
export interface KeyCertPair {
|
|
171
|
+
private_key: Buffer;
|
|
172
|
+
cert_chain: Buffer;
|
|
173
|
+
}
|
|
174
|
+
*/
|
|
175
|
+
if (require.main === module) {
|
|
176
|
+
// If this is run as a script, start a server on an unused port
|
|
177
|
+
const routeServer = getServer();
|
|
178
|
+
// Secure server
|
|
179
|
+
routeServer.bindAsync('0.0.0.0:3029', grpc.ServerCredentials.createSsl(null, [
|
|
180
|
+
{
|
|
181
|
+
private_key: node_fs_1.default.readFileSync('/etc/letsencrypt/live/stsmda.org/privkey.pem'),
|
|
182
|
+
cert_chain: node_fs_1.default.readFileSync('/etc/letsencrypt/live/stsmda.org/fullchain.pem')
|
|
183
|
+
}
|
|
184
|
+
]), (error, port) => {
|
|
185
|
+
if (error) {
|
|
186
|
+
console.log(chalk_1.default.red(`Error starting gRPC TLS server on port: [${port}], Error: [${error}]`));
|
|
187
|
+
}
|
|
188
|
+
else {
|
|
189
|
+
console.log(chalk_1.default.green(`Started gRPC TLS server on port: [${port}]`));
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
// Insecure server
|
|
193
|
+
/*
|
|
194
|
+
routeServer.bindAsync('0.0.0.0:3029', grpc.ServerCredentials.createInsecure(),
|
|
195
|
+
(error, port) => {
|
|
196
|
+
if (error) {
|
|
197
|
+
console.log(chalk.red(`Error starting gRPC TLS server on port: [${port}], Error: [${error}]`));
|
|
198
|
+
} else {
|
|
199
|
+
console.log(chalk.green(`Started gRPC TLS server on port: [${port}]`));
|
|
200
|
+
}
|
|
201
|
+
});
|
|
202
|
+
*/
|
|
203
|
+
}
|
|
204
|
+
exports.getServer = getServer;
|
|
205
|
+
//# sourceMappingURL=route_guide_server2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"route_guide_server2.js","sourceRoot":"","sources":["../../../../src/gRPC/ststest/src/route_guide_server2.ts"],"names":[],"mappings":";AAAA,kDAAkD,CAAE,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE9D,mEAAmE;AACnE,uIAAuI;AAEvI;;;;;;;;;;;;;;;;GAgBG;AAEH,MAAM,aAAa,GAAG,SAAS,GAAG,yDAAyD,CAAC;AAE5F,oDAAsC;AACtC,gEAAkD;AAElD,yFAAyF;AAEzF,kDAAyB;AAEzB,sDAAwB;AAUxB,MAAM,iBAAiB,GAAG,WAAW,CAAC,QAAQ,CAC1C,aAAa,EACb,EAAC,QAAQ,EAAE,IAAI;IACX,KAAK,EAAE,MAAM;IACb,KAAK,EAAE,MAAM;IACb,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;CACf,CAAC,CAAC;AACP,8EAA8E;AAE9E,MAAM,UAAU,GAAI,IAAI,CAAC,qBAAqB,CAC1C,iBAAiB,CACS,CAAC;AAE/B,MAAM,aAAa,GAAuB;IACtC,UAAU,CAAC,IAAI,EAAE,QAAQ;QACrB,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,IAAI,CAAC,8BAA8B,I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any: 0 */ // --> OFF
|
|
2
|
+
import type * as grpc from '@grpc/grpc-js';
|
|
3
|
+
import type { MessageTypeDefinition } from '@grpc/proto-loader';
|
|
4
|
+
|
|
5
|
+
import type { TestServiceClient as _grpc_testing_TestServiceClient, TestServiceDefinition as _grpc_testing_TestServiceDefinition } from './grpc/testing/TestService';
|
|
6
|
+
|
|
7
|
+
type SubtypeConstructor<Constructor extends new (...args: any) => any, Subtype> = {
|
|
8
|
+
new(...args: ConstructorParameters<Constructor>): Subtype;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export interface ProtoGrpcType {
|
|
12
|
+
grpc: {
|
|
13
|
+
testing: {
|
|
14
|
+
Request: MessageTypeDefinition
|
|
15
|
+
Response: MessageTypeDefinition
|
|
16
|
+
TestService: SubtypeConstructor<typeof grpc.Client, _grpc_testing_TestServiceClient> & { service: _grpc_testing_TestServiceDefinition }
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/* eslint @typescript-eslint/no-explicit-any: 0 */ // --> OFF
|
|
2
|
+
import type * as grpc from '@grpc/grpc-js';
|
|
3
|
+
import type { MessageTypeDefinition } from '@grpc/proto-loader';
|
|
4
|
+
|
|
5
|
+
import type { EchoClient as _grpc_examples_echo_EchoClient, EchoDefinition as _grpc_examples_echo_EchoDefinition } from './grpc/examples/echo/Echo';
|
|
6
|
+
|
|
7
|
+
type SubtypeConstructor<Constructor extends new (...args: any) => any, Subtype> = {
|
|
8
|
+
new(...args: ConstructorParameters<Constructor>): Subtype;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export interface ProtoGrpcType {
|
|
12
|
+
grpc: {
|
|
13
|
+
examples: {
|
|
14
|
+
echo: {
|
|
15
|
+
Echo: SubtypeConstructor<typeof grpc.Client, _grpc_examples_echo_EchoClient> & { service: _grpc_examples_echo_EchoDefinition }
|
|
16
|
+
EchoRequest: MessageTypeDefinition
|
|
17
|
+
EchoResponse: MessageTypeDefinition
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
// Original file: protos/echo.proto
|
|
2
|
+
|
|
3
|
+
import type * as grpc from '@grpc/grpc-js'
|
|
4
|
+
import type { MethodDefinition } from '@grpc/proto-loader'
|
|
5
|
+
import type { EchoRequest as _grpc_examples_echo_EchoRequest, EchoRequest__Output as _grpc_examples_echo_EchoRequest__Output } from '../../../grpc/examples/echo/EchoRequest';
|
|
6
|
+
import type { EchoResponse as _grpc_examples_echo_EchoResponse, EchoResponse__Output as _grpc_examples_echo_EchoResponse__Output } from '../../../grpc/examples/echo/EchoResponse';
|
|
7
|
+
|
|
8
|
+
export interface EchoClient extends grpc.Client {
|
|
9
|
+
BidirectionalStreamingEcho(metadata: grpc.Metadata, options?: grpc.CallOptions): grpc.ClientDuplexStream<_grpc_examples_echo_EchoRequest, _grpc_examples_echo_EchoResponse__Output>;
|
|
10
|
+
BidirectionalStreamingEcho(options?: grpc.CallOptions): grpc.ClientDuplexStream<_grpc_examples_echo_EchoRequest, _grpc_examples_echo_EchoResponse__Output>;
|
|
11
|
+
bidirectionalStreamingEcho(metadata: grpc.Metadata, options?: grpc.CallOptions): grpc.ClientDuplexStream<_grpc_examples_echo_EchoRequest, _grpc_examples_echo_EchoResponse__Output>;
|
|
12
|
+
bidirectionalStreamingEcho(options?: grpc.CallOptions): grpc.ClientDuplexStream<_grpc_examples_echo_EchoRequest, _grpc_examples_echo_EchoResponse__Output>;
|
|
13
|
+
|
|
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
|
+
clientStreamingEcho(metadata: grpc.Metadata, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_examples_echo_EchoResponse__Output>): grpc.ClientWritableStream<_grpc_examples_echo_EchoRequest>;
|
|
19
|
+
clientStreamingEcho(metadata: grpc.Metadata, callback: grpc.requestCallback<_grpc_examples_echo_EchoResponse__Output>): grpc.ClientWritableStream<_grpc_examples_echo_EchoRequest>;
|
|
20
|
+
clientStreamingEcho(options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_examples_echo_EchoResponse__Output>): grpc.ClientWritableStream<_grpc_examples_echo_EchoRequest>;
|
|
21
|
+
clientStreamingEcho(callback: grpc.requestCallback<_grpc_examples_echo_EchoResponse__Output>): grpc.ClientWritableStream<_grpc_examples_echo_EchoRequest>;
|
|
22
|
+
|
|
23
|
+
ServerStreamingEcho(argument: _grpc_examples_echo_EchoRequest, metadata: grpc.Metadata, options?: grpc.CallOptions): grpc.ClientReadableStream<_grpc_examples_echo_EchoResponse__Output>;
|
|
24
|
+
ServerStreamingEcho(argument: _grpc_examples_echo_EchoRequest, options?: grpc.CallOptions): grpc.ClientReadableStream<_grpc_examples_echo_EchoResponse__Output>;
|
|
25
|
+
serverStreamingEcho(argument: _grpc_examples_echo_EchoRequest, metadata: grpc.Metadata, options?: grpc.CallOptions): grpc.ClientReadableStream<_grpc_examples_echo_EchoResponse__Output>;
|
|
26
|
+
serverStreamingEcho(argument: _grpc_examples_echo_EchoRequest, options?: grpc.CallOptions): grpc.ClientReadableStream<_grpc_examples_echo_EchoResponse__Output>;
|
|
27
|
+
|
|
28
|
+
UnaryEcho(argument: _grpc_examples_echo_EchoRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_examples_echo_EchoResponse__Output>): grpc.ClientUnaryCall;
|
|
29
|
+
UnaryEcho(argument: _grpc_examples_echo_EchoRequest, metadata: grpc.Metadata, callback: grpc.requestCallback<_grpc_examples_echo_EchoResponse__Output>): grpc.ClientUnaryCall;
|
|
30
|
+
UnaryEcho(argument: _grpc_examples_echo_EchoRequest, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_examples_echo_EchoResponse__Output>): grpc.ClientUnaryCall;
|
|
31
|
+
UnaryEcho(argument: _grpc_examples_echo_EchoRequest, callback: grpc.requestCallback<_grpc_examples_echo_EchoResponse__Output>): grpc.ClientUnaryCall;
|
|
32
|
+
unaryEcho(argument: _grpc_examples_echo_EchoRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_examples_echo_EchoResponse__Output>): grpc.ClientUnaryCall;
|
|
33
|
+
unaryEcho(argument: _grpc_examples_echo_EchoRequest, metadata: grpc.Metadata, callback: grpc.requestCallback<_grpc_examples_echo_EchoResponse__Output>): grpc.ClientUnaryCall;
|
|
34
|
+
unaryEcho(argument: _grpc_examples_echo_EchoRequest, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_examples_echo_EchoResponse__Output>): grpc.ClientUnaryCall;
|
|
35
|
+
unaryEcho(argument: _grpc_examples_echo_EchoRequest, callback: grpc.requestCallback<_grpc_examples_echo_EchoResponse__Output>): grpc.ClientUnaryCall;
|
|
36
|
+
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface EchoHandlers extends grpc.UntypedServiceImplementation {
|
|
40
|
+
BidirectionalStreamingEcho: grpc.handleBidiStreamingCall<_grpc_examples_echo_EchoRequest__Output, _grpc_examples_echo_EchoResponse>;
|
|
41
|
+
|
|
42
|
+
ClientStreamingEcho: grpc.handleClientStreamingCall<_grpc_examples_echo_EchoRequest__Output, _grpc_examples_echo_EchoResponse>;
|
|
43
|
+
|
|
44
|
+
ServerStreamingEcho: grpc.handleServerStreamingCall<_grpc_examples_echo_EchoRequest__Output, _grpc_examples_echo_EchoResponse>;
|
|
45
|
+
|
|
46
|
+
UnaryEcho: grpc.handleUnaryCall<_grpc_examples_echo_EchoRequest__Output, _grpc_examples_echo_EchoResponse>;
|
|
47
|
+
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export interface EchoDefinition extends grpc.ServiceDefinition {
|
|
51
|
+
BidirectionalStreamingEcho: MethodDefinition<_grpc_examples_echo_EchoRequest, _grpc_examples_echo_EchoResponse, _grpc_examples_echo_EchoRequest__Output, _grpc_examples_echo_EchoResponse__Output>
|
|
52
|
+
ClientStreamingEcho: MethodDefinition<_grpc_examples_echo_EchoRequest, _grpc_examples_echo_EchoResponse, _grpc_examples_echo_EchoRequest__Output, _grpc_examples_echo_EchoResponse__Output>
|
|
53
|
+
ServerStreamingEcho: MethodDefinition<_grpc_examples_echo_EchoRequest, _grpc_examples_echo_EchoResponse, _grpc_examples_echo_EchoRequest__Output, _grpc_examples_echo_EchoResponse__Output>
|
|
54
|
+
UnaryEcho: MethodDefinition<_grpc_examples_echo_EchoRequest, _grpc_examples_echo_EchoResponse, _grpc_examples_echo_EchoRequest__Output, _grpc_examples_echo_EchoResponse__Output>
|
|
55
|
+
}
|