@milaboratories/pl-drivers 1.12.7 → 1.12.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/clients/download.cjs +1 -0
- package/dist/clients/download.cjs.map +1 -1
- package/dist/clients/download.js +1 -0
- package/dist/clients/download.js.map +1 -1
- package/dist/clients/logs.cjs +2 -0
- package/dist/clients/logs.cjs.map +1 -1
- package/dist/clients/logs.js +2 -0
- package/dist/clients/logs.js.map +1 -1
- package/dist/clients/ls_api.cjs +1 -0
- package/dist/clients/ls_api.cjs.map +1 -1
- package/dist/clients/ls_api.js +1 -0
- package/dist/clients/ls_api.js.map +1 -1
- package/dist/clients/progress.cjs +4 -1
- package/dist/clients/progress.cjs.map +1 -1
- package/dist/clients/progress.js +4 -1
- package/dist/clients/progress.js.map +1 -1
- package/dist/clients/upload.cjs +17 -3
- package/dist/clients/upload.cjs.map +1 -1
- package/dist/clients/upload.js +17 -3
- package/dist/clients/upload.js.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.cjs +28 -16
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.cjs.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.cjs +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.cjs.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts +2 -2
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.js +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.js.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts +11 -5
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.js +28 -16
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.js.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.cjs +26 -12
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.cjs.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.cjs +4 -4
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.cjs.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.js +4 -4
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.js.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.d.ts +16 -16
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.js +26 -12
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.js.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.cjs +36 -12
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.cjs.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.cjs +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.cjs.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts +2 -2
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.js +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.js.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts +8 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.js +36 -12
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.js.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.cjs +29 -189
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.cjs.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.cjs +20 -41
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.cjs.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts +36 -66
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.js +20 -41
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.js.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts +52 -137
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.js +29 -189
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.js.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.cjs +225 -24
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.cjs.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.cjs +21 -7
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.cjs.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.js +21 -7
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.js.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.js +225 -24
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.js.map +1 -1
- package/dist/proto-rest/downloadapi.d.ts +8 -3
- package/dist/proto-rest/progressapi.d.ts +4 -2
- package/dist/proto-rest/streamingapi.d.ts +64 -203
- package/package.json +5 -5
- package/src/clients/download.ts +1 -0
- package/src/clients/logs.ts +2 -0
- package/src/clients/ls_api.ts +1 -0
- package/src/clients/progress.ts +1 -1
- package/src/clients/upload.ts +14 -1
- package/src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.ts +2 -2
- package/src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.ts +24 -11
- package/src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.ts +8 -8
- package/src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.ts +31 -18
- package/src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.ts +2 -2
- package/src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.ts +23 -1
- package/src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.ts +39 -78
- package/src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.ts +72 -263
- package/src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.ts +41 -14
- package/src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.ts +286 -44
- package/src/proto-grpc/google/protobuf/descriptor.ts +2 -5
- package/src/proto-rest/downloadapi.ts +8 -3
- package/src/proto-rest/lsapi.ts +23 -18
- package/src/proto-rest/progressapi.ts +4 -0
- package/src/proto-rest/streamingapi.ts +65 -211
- package/src/proto-rest/uploadapi.ts +141 -39
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protocol.client.cjs","names":["Streaming"],"sources":["../../../../../../../../../src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.ts"],"sourcesContent":["// @generated by protobuf-ts 2.11.1 with parameter client_generic,optimize_speed,generate_dependencies,force_server_none\n// @generated from protobuf file \"github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.proto\" (package \"MiLaboratories.Controller.Shared\", syntax proto3)\n// tslint:disable\nimport type { RpcTransport } from \"@protobuf-ts/runtime-rpc\";\nimport type { ServiceInfo } from \"@protobuf-ts/runtime-rpc\";\nimport { Streaming } from \"./protocol\";\nimport type { StreamingAPI_LastLines } from \"./protocol\";\nimport type { StreamingAPI_ReadText } from \"./protocol\";\nimport
|
|
1
|
+
{"version":3,"file":"protocol.client.cjs","names":["Streaming"],"sources":["../../../../../../../../../src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.ts"],"sourcesContent":["// @generated by protobuf-ts 2.11.1 with parameter client_generic,optimize_speed,generate_dependencies,force_server_none\n// @generated from protobuf file \"github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.proto\" (package \"MiLaboratories.Controller.Shared\", syntax proto3)\n// tslint:disable\nimport type { RpcTransport } from \"@protobuf-ts/runtime-rpc\";\nimport type { ServiceInfo } from \"@protobuf-ts/runtime-rpc\";\nimport { Streaming } from \"./protocol\";\nimport type { StreamingAPI_LastLines } from \"./protocol\";\nimport type { StreamingAPI_ReadText } from \"./protocol\";\nimport { stackIntercept } from \"@protobuf-ts/runtime-rpc\";\nimport type { StreamingAPI_Response } from \"./protocol\";\nimport type { StreamingAPI_ReadBinary } from \"./protocol\";\nimport type { UnaryCall } from \"@protobuf-ts/runtime-rpc\";\nimport type { RpcOptions } from \"@protobuf-ts/runtime-rpc\";\n/**\n *\n * Streaming provides access to an online data stream from an item in storage. Whenever data is appended to an item,\n * the caller receives this fresh data in a stream from the server.\n *\n *\n * @generated from protobuf service MiLaboratories.Controller.Shared.Streaming\n */\nexport interface IStreamingClient {\n /**\n * ReadBinary allows reading a remote item in chunks using a stream-like API.\n * The client receives a single response for each call and has to send new calls\n * to the server to get fresh data from the remote item.\n * Each response (each chunk from the server) contains no more than 3.9MiB of data.\n *\n * @generated from protobuf rpc: ReadBinary\n */\n readBinary(input: StreamingAPI_ReadBinary, options?: RpcOptions): UnaryCall<StreamingAPI_ReadBinary, StreamingAPI_Response>;\n /**\n * ReadText allows reading a remote item in chunks using a stream-like API.\n * The client receives a single response for each call and has to send new calls\n * to the server to get fresh data from the remote item.\n * Each response (each chunk from the server) contains no more than 3.9MiB of data.\n *\n * @generated from protobuf rpc: ReadText\n */\n readText(input: StreamingAPI_ReadText, options?: RpcOptions): UnaryCall<StreamingAPI_ReadText, StreamingAPI_Response>;\n /**\n * LastLines provides a single message with the last lines from the data source.\n * When a search pattern is specified, the last lines matching the given pattern are returned.\n * The lines are returned in reverse order, as the server reads the data source from the end.\n * Consider it equivalent to 'tac <file> | grep <search> | head -n <line_count>'\n * The <new_offset> returned in the response points to the _beginning_ of the last\n * line found, so the client can continue reading the file backwards in subsequent calls.\n * This means that the use of this <new_offset> in ReadText() will return the last line\n * returned in the LastLines() response.\n *\n * @generated from protobuf rpc: LastLines\n */\n lastLines(input: StreamingAPI_LastLines, options?: RpcOptions): UnaryCall<StreamingAPI_LastLines, StreamingAPI_Response>;\n}\n/**\n *\n * Streaming provides access to an online data stream from an item in storage. Whenever data is appended to an item,\n * the caller receives this fresh data in a stream from the server.\n *\n *\n * @generated from protobuf service MiLaboratories.Controller.Shared.Streaming\n */\nexport class StreamingClient implements IStreamingClient, ServiceInfo {\n typeName = Streaming.typeName;\n methods = Streaming.methods;\n options = Streaming.options;\n constructor(private readonly _transport: RpcTransport) {\n }\n /**\n * ReadBinary allows reading a remote item in chunks using a stream-like API.\n * The client receives a single response for each call and has to send new calls\n * to the server to get fresh data from the remote item.\n * Each response (each chunk from the server) contains no more than 3.9MiB of data.\n *\n * @generated from protobuf rpc: ReadBinary\n */\n readBinary(input: StreamingAPI_ReadBinary, options?: RpcOptions): UnaryCall<StreamingAPI_ReadBinary, StreamingAPI_Response> {\n const method = this.methods[0], opt = this._transport.mergeOptions(options);\n return stackIntercept<StreamingAPI_ReadBinary, StreamingAPI_Response>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * ReadText allows reading a remote item in chunks using a stream-like API.\n * The client receives a single response for each call and has to send new calls\n * to the server to get fresh data from the remote item.\n * Each response (each chunk from the server) contains no more than 3.9MiB of data.\n *\n * @generated from protobuf rpc: ReadText\n */\n readText(input: StreamingAPI_ReadText, options?: RpcOptions): UnaryCall<StreamingAPI_ReadText, StreamingAPI_Response> {\n const method = this.methods[1], opt = this._transport.mergeOptions(options);\n return stackIntercept<StreamingAPI_ReadText, StreamingAPI_Response>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * LastLines provides a single message with the last lines from the data source.\n * When a search pattern is specified, the last lines matching the given pattern are returned.\n * The lines are returned in reverse order, as the server reads the data source from the end.\n * Consider it equivalent to 'tac <file> | grep <search> | head -n <line_count>'\n * The <new_offset> returned in the response points to the _beginning_ of the last\n * line found, so the client can continue reading the file backwards in subsequent calls.\n * This means that the use of this <new_offset> in ReadText() will return the last line\n * returned in the LastLines() response.\n *\n * @generated from protobuf rpc: LastLines\n */\n lastLines(input: StreamingAPI_LastLines, options?: RpcOptions): UnaryCall<StreamingAPI_LastLines, StreamingAPI_Response> {\n const method = this.methods[2], opt = this._transport.mergeOptions(options);\n return stackIntercept<StreamingAPI_LastLines, StreamingAPI_Response>(\"unary\", this._transport, method, opt, input);\n }\n}\n"],"mappings":";;;;;;;;;;;;;AA8DA,IAAa,kBAAb,MAAsE;CAClE,WAAWA,2BAAU;CACrB,UAAUA,2BAAU;CACpB,UAAUA,2BAAU;CACpB,YAAY,AAAiB,YAA0B;EAA1B;;;;;;;;;;CAU7B,WAAW,OAAgC,SAAiF;EACxH,MAAM,SAAS,KAAK,QAAQ,IAAI,MAAM,KAAK,WAAW,aAAa,QAAQ;AAC3E,sDAAsE,SAAS,KAAK,YAAY,QAAQ,KAAK,MAAM;;;;;;;;;;CAUvH,SAAS,OAA8B,SAA+E;EAClH,MAAM,SAAS,KAAK,QAAQ,IAAI,MAAM,KAAK,WAAW,aAAa,QAAQ;AAC3E,sDAAoE,SAAS,KAAK,YAAY,QAAQ,KAAK,MAAM;;;;;;;;;;;;;;CAcrH,UAAU,OAA+B,SAAgF;EACrH,MAAM,SAAS,KAAK,QAAQ,IAAI,MAAM,KAAK,WAAW,aAAa,QAAQ;AAC3E,sDAAqE,SAAS,KAAK,YAAY,QAAQ,KAAK,MAAM"}
|
|
@@ -1,60 +1,45 @@
|
|
|
1
|
-
import { StreamingAPI_LastLines, StreamingAPI_ReadBinary, StreamingAPI_ReadText, StreamingAPI_Response
|
|
1
|
+
import { StreamingAPI_LastLines, StreamingAPI_ReadBinary, StreamingAPI_ReadText, StreamingAPI_Response } from "./protocol.js";
|
|
2
2
|
import * as _protobuf_ts_runtime_rpc0 from "@protobuf-ts/runtime-rpc";
|
|
3
|
-
import { RpcOptions, RpcTransport,
|
|
3
|
+
import { RpcOptions, RpcTransport, ServiceInfo, UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
4
4
|
import * as _protobuf_ts_runtime0 from "@protobuf-ts/runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts
|
|
7
7
|
/**
|
|
8
8
|
*
|
|
9
|
-
* Streaming provides access to online data stream from item in storage. Whenever
|
|
10
|
-
* the caller receives this fresh data in stream from server.
|
|
9
|
+
* Streaming provides access to an online data stream from an item in storage. Whenever data is appended to an item,
|
|
10
|
+
* the caller receives this fresh data in a stream from the server.
|
|
11
11
|
*
|
|
12
12
|
*
|
|
13
13
|
* @generated from protobuf service MiLaboratories.Controller.Shared.Streaming
|
|
14
14
|
*/
|
|
15
15
|
interface IStreamingClient {
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* @generated from protobuf rpc: StreamBinary
|
|
22
|
-
*/
|
|
23
|
-
streamBinary(input: StreamingAPI_StreamBinary, options?: RpcOptions): ServerStreamingCall<StreamingAPI_StreamBinary, StreamingAPI_Response>;
|
|
24
|
-
/**
|
|
25
|
-
* ReadBinary allows to read remote item in chunks using stream-like API.
|
|
26
|
-
* The difference to StreamBinary is that the client receives single response for each
|
|
27
|
-
* call and has to send new calls to the server to get fresh data from remote item.
|
|
28
|
-
* Each response (each chunk from server) keeps not more than 3.9MiB of data.
|
|
17
|
+
* ReadBinary allows reading a remote item in chunks using a stream-like API.
|
|
18
|
+
* The client receives a single response for each call and has to send new calls
|
|
19
|
+
* to the server to get fresh data from the remote item.
|
|
20
|
+
* Each response (each chunk from the server) contains no more than 3.9MiB of data.
|
|
29
21
|
*
|
|
30
22
|
* @generated from protobuf rpc: ReadBinary
|
|
31
23
|
*/
|
|
32
24
|
readBinary(input: StreamingAPI_ReadBinary, options?: RpcOptions): UnaryCall<StreamingAPI_ReadBinary, StreamingAPI_Response>;
|
|
33
25
|
/**
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*/
|
|
39
|
-
streamText(input: StreamingAPI_StreamText, options?: RpcOptions): ServerStreamingCall<StreamingAPI_StreamText, StreamingAPI_Response>;
|
|
40
|
-
/**
|
|
41
|
-
* ReadBinary allows to read remote item in chunks using stream-like API.
|
|
42
|
-
* The difference to StreamBinary is that the client receives single response for each
|
|
43
|
-
* call and has to send new calls to the server to get fresh data from remote item.
|
|
44
|
-
* Each response (each chunk from server) keeps not more than 3.9MiB of data.
|
|
26
|
+
* ReadText allows reading a remote item in chunks using a stream-like API.
|
|
27
|
+
* The client receives a single response for each call and has to send new calls
|
|
28
|
+
* to the server to get fresh data from the remote item.
|
|
29
|
+
* Each response (each chunk from the server) contains no more than 3.9MiB of data.
|
|
45
30
|
*
|
|
46
31
|
* @generated from protobuf rpc: ReadText
|
|
47
32
|
*/
|
|
48
33
|
readText(input: StreamingAPI_ReadText, options?: RpcOptions): UnaryCall<StreamingAPI_ReadText, StreamingAPI_Response>;
|
|
49
34
|
/**
|
|
50
|
-
* LastLines provides single message with the last lines from data source.
|
|
51
|
-
* When search pattern is specified, the last lines matching the given pattern are returned.
|
|
52
|
-
* The lines are returned in
|
|
53
|
-
* Consider it
|
|
35
|
+
* LastLines provides a single message with the last lines from the data source.
|
|
36
|
+
* When a search pattern is specified, the last lines matching the given pattern are returned.
|
|
37
|
+
* The lines are returned in reverse order, as the server reads the data source from the end.
|
|
38
|
+
* Consider it equivalent to 'tac <file> | grep <search> | head -n <line_count>'
|
|
54
39
|
* The <new_offset> returned in the response points to the _beginning_ of the last
|
|
55
|
-
* line found, so client can continue reading the file backwards in subsequent calls.
|
|
56
|
-
* This means
|
|
57
|
-
* returned
|
|
40
|
+
* line found, so the client can continue reading the file backwards in subsequent calls.
|
|
41
|
+
* This means that the use of this <new_offset> in ReadText() will return the last line
|
|
42
|
+
* returned in the LastLines() response.
|
|
58
43
|
*
|
|
59
44
|
* @generated from protobuf rpc: LastLines
|
|
60
45
|
*/
|
|
@@ -62,8 +47,8 @@ interface IStreamingClient {
|
|
|
62
47
|
}
|
|
63
48
|
/**
|
|
64
49
|
*
|
|
65
|
-
* Streaming provides access to online data stream from item in storage. Whenever
|
|
66
|
-
* the caller receives this fresh data in stream from server.
|
|
50
|
+
* Streaming provides access to an online data stream from an item in storage. Whenever data is appended to an item,
|
|
51
|
+
* the caller receives this fresh data in a stream from the server.
|
|
67
52
|
*
|
|
68
53
|
*
|
|
69
54
|
* @generated from protobuf service MiLaboratories.Controller.Shared.Streaming
|
|
@@ -77,47 +62,32 @@ declare class StreamingClient implements IStreamingClient, ServiceInfo {
|
|
|
77
62
|
};
|
|
78
63
|
constructor(_transport: RpcTransport);
|
|
79
64
|
/**
|
|
80
|
-
*
|
|
81
|
-
*
|
|
82
|
-
*
|
|
83
|
-
*
|
|
84
|
-
* @generated from protobuf rpc: StreamBinary
|
|
85
|
-
*/
|
|
86
|
-
streamBinary(input: StreamingAPI_StreamBinary, options?: RpcOptions): ServerStreamingCall<StreamingAPI_StreamBinary, StreamingAPI_Response>;
|
|
87
|
-
/**
|
|
88
|
-
* ReadBinary allows to read remote item in chunks using stream-like API.
|
|
89
|
-
* The difference to StreamBinary is that the client receives single response for each
|
|
90
|
-
* call and has to send new calls to the server to get fresh data from remote item.
|
|
91
|
-
* Each response (each chunk from server) keeps not more than 3.9MiB of data.
|
|
65
|
+
* ReadBinary allows reading a remote item in chunks using a stream-like API.
|
|
66
|
+
* The client receives a single response for each call and has to send new calls
|
|
67
|
+
* to the server to get fresh data from the remote item.
|
|
68
|
+
* Each response (each chunk from the server) contains no more than 3.9MiB of data.
|
|
92
69
|
*
|
|
93
70
|
* @generated from protobuf rpc: ReadBinary
|
|
94
71
|
*/
|
|
95
72
|
readBinary(input: StreamingAPI_ReadBinary, options?: RpcOptions): UnaryCall<StreamingAPI_ReadBinary, StreamingAPI_Response>;
|
|
96
73
|
/**
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
*/
|
|
102
|
-
streamText(input: StreamingAPI_StreamText, options?: RpcOptions): ServerStreamingCall<StreamingAPI_StreamText, StreamingAPI_Response>;
|
|
103
|
-
/**
|
|
104
|
-
* ReadBinary allows to read remote item in chunks using stream-like API.
|
|
105
|
-
* The difference to StreamBinary is that the client receives single response for each
|
|
106
|
-
* call and has to send new calls to the server to get fresh data from remote item.
|
|
107
|
-
* Each response (each chunk from server) keeps not more than 3.9MiB of data.
|
|
74
|
+
* ReadText allows reading a remote item in chunks using a stream-like API.
|
|
75
|
+
* The client receives a single response for each call and has to send new calls
|
|
76
|
+
* to the server to get fresh data from the remote item.
|
|
77
|
+
* Each response (each chunk from the server) contains no more than 3.9MiB of data.
|
|
108
78
|
*
|
|
109
79
|
* @generated from protobuf rpc: ReadText
|
|
110
80
|
*/
|
|
111
81
|
readText(input: StreamingAPI_ReadText, options?: RpcOptions): UnaryCall<StreamingAPI_ReadText, StreamingAPI_Response>;
|
|
112
82
|
/**
|
|
113
|
-
* LastLines provides single message with the last lines from data source.
|
|
114
|
-
* When search pattern is specified, the last lines matching the given pattern are returned.
|
|
115
|
-
* The lines are returned in
|
|
116
|
-
* Consider it
|
|
83
|
+
* LastLines provides a single message with the last lines from the data source.
|
|
84
|
+
* When a search pattern is specified, the last lines matching the given pattern are returned.
|
|
85
|
+
* The lines are returned in reverse order, as the server reads the data source from the end.
|
|
86
|
+
* Consider it equivalent to 'tac <file> | grep <search> | head -n <line_count>'
|
|
117
87
|
* The <new_offset> returned in the response points to the _beginning_ of the last
|
|
118
|
-
* line found, so client can continue reading the file backwards in subsequent calls.
|
|
119
|
-
* This means
|
|
120
|
-
* returned
|
|
88
|
+
* line found, so the client can continue reading the file backwards in subsequent calls.
|
|
89
|
+
* This means that the use of this <new_offset> in ReadText() will return the last line
|
|
90
|
+
* returned in the LastLines() response.
|
|
121
91
|
*
|
|
122
92
|
* @generated from protobuf rpc: LastLines
|
|
123
93
|
*/
|
|
@@ -4,8 +4,8 @@ import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
|
4
4
|
//#region src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.ts
|
|
5
5
|
/**
|
|
6
6
|
*
|
|
7
|
-
* Streaming provides access to online data stream from item in storage. Whenever
|
|
8
|
-
* the caller receives this fresh data in stream from server.
|
|
7
|
+
* Streaming provides access to an online data stream from an item in storage. Whenever data is appended to an item,
|
|
8
|
+
* the caller receives this fresh data in a stream from the server.
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* @generated from protobuf service MiLaboratories.Controller.Shared.Streaming
|
|
@@ -18,64 +18,43 @@ var StreamingClient = class {
|
|
|
18
18
|
this._transport = _transport;
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* @generated from protobuf rpc: StreamBinary
|
|
26
|
-
*/
|
|
27
|
-
streamBinary(input, options) {
|
|
28
|
-
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
29
|
-
return stackIntercept("serverStreaming", this._transport, method, opt, input);
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* ReadBinary allows to read remote item in chunks using stream-like API.
|
|
33
|
-
* The difference to StreamBinary is that the client receives single response for each
|
|
34
|
-
* call and has to send new calls to the server to get fresh data from remote item.
|
|
35
|
-
* Each response (each chunk from server) keeps not more than 3.9MiB of data.
|
|
21
|
+
* ReadBinary allows reading a remote item in chunks using a stream-like API.
|
|
22
|
+
* The client receives a single response for each call and has to send new calls
|
|
23
|
+
* to the server to get fresh data from the remote item.
|
|
24
|
+
* Each response (each chunk from the server) contains no more than 3.9MiB of data.
|
|
36
25
|
*
|
|
37
26
|
* @generated from protobuf rpc: ReadBinary
|
|
38
27
|
*/
|
|
39
28
|
readBinary(input, options) {
|
|
40
|
-
const method = this.methods[
|
|
29
|
+
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
41
30
|
return stackIntercept("unary", this._transport, method, opt, input);
|
|
42
31
|
}
|
|
43
32
|
/**
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*/
|
|
49
|
-
streamText(input, options) {
|
|
50
|
-
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
51
|
-
return stackIntercept("serverStreaming", this._transport, method, opt, input);
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* ReadBinary allows to read remote item in chunks using stream-like API.
|
|
55
|
-
* The difference to StreamBinary is that the client receives single response for each
|
|
56
|
-
* call and has to send new calls to the server to get fresh data from remote item.
|
|
57
|
-
* Each response (each chunk from server) keeps not more than 3.9MiB of data.
|
|
33
|
+
* ReadText allows reading a remote item in chunks using a stream-like API.
|
|
34
|
+
* The client receives a single response for each call and has to send new calls
|
|
35
|
+
* to the server to get fresh data from the remote item.
|
|
36
|
+
* Each response (each chunk from the server) contains no more than 3.9MiB of data.
|
|
58
37
|
*
|
|
59
38
|
* @generated from protobuf rpc: ReadText
|
|
60
39
|
*/
|
|
61
40
|
readText(input, options) {
|
|
62
|
-
const method = this.methods[
|
|
41
|
+
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
63
42
|
return stackIntercept("unary", this._transport, method, opt, input);
|
|
64
43
|
}
|
|
65
44
|
/**
|
|
66
|
-
* LastLines provides single message with the last lines from data source.
|
|
67
|
-
* When search pattern is specified, the last lines matching the given pattern are returned.
|
|
68
|
-
* The lines are returned in
|
|
69
|
-
* Consider it
|
|
45
|
+
* LastLines provides a single message with the last lines from the data source.
|
|
46
|
+
* When a search pattern is specified, the last lines matching the given pattern are returned.
|
|
47
|
+
* The lines are returned in reverse order, as the server reads the data source from the end.
|
|
48
|
+
* Consider it equivalent to 'tac <file> | grep <search> | head -n <line_count>'
|
|
70
49
|
* The <new_offset> returned in the response points to the _beginning_ of the last
|
|
71
|
-
* line found, so client can continue reading the file backwards in subsequent calls.
|
|
72
|
-
* This means
|
|
73
|
-
* returned
|
|
50
|
+
* line found, so the client can continue reading the file backwards in subsequent calls.
|
|
51
|
+
* This means that the use of this <new_offset> in ReadText() will return the last line
|
|
52
|
+
* returned in the LastLines() response.
|
|
74
53
|
*
|
|
75
54
|
* @generated from protobuf rpc: LastLines
|
|
76
55
|
*/
|
|
77
56
|
lastLines(input, options) {
|
|
78
|
-
const method = this.methods[
|
|
57
|
+
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
79
58
|
return stackIntercept("unary", this._transport, method, opt, input);
|
|
80
59
|
}
|
|
81
60
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protocol.client.js","names":[],"sources":["../../../../../../../../../src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.ts"],"sourcesContent":["// @generated by protobuf-ts 2.11.1 with parameter client_generic,optimize_speed,generate_dependencies,force_server_none\n// @generated from protobuf file \"github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.proto\" (package \"MiLaboratories.Controller.Shared\", syntax proto3)\n// tslint:disable\nimport type { RpcTransport } from \"@protobuf-ts/runtime-rpc\";\nimport type { ServiceInfo } from \"@protobuf-ts/runtime-rpc\";\nimport { Streaming } from \"./protocol\";\nimport type { StreamingAPI_LastLines } from \"./protocol\";\nimport type { StreamingAPI_ReadText } from \"./protocol\";\nimport
|
|
1
|
+
{"version":3,"file":"protocol.client.js","names":[],"sources":["../../../../../../../../../src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.ts"],"sourcesContent":["// @generated by protobuf-ts 2.11.1 with parameter client_generic,optimize_speed,generate_dependencies,force_server_none\n// @generated from protobuf file \"github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.proto\" (package \"MiLaboratories.Controller.Shared\", syntax proto3)\n// tslint:disable\nimport type { RpcTransport } from \"@protobuf-ts/runtime-rpc\";\nimport type { ServiceInfo } from \"@protobuf-ts/runtime-rpc\";\nimport { Streaming } from \"./protocol\";\nimport type { StreamingAPI_LastLines } from \"./protocol\";\nimport type { StreamingAPI_ReadText } from \"./protocol\";\nimport { stackIntercept } from \"@protobuf-ts/runtime-rpc\";\nimport type { StreamingAPI_Response } from \"./protocol\";\nimport type { StreamingAPI_ReadBinary } from \"./protocol\";\nimport type { UnaryCall } from \"@protobuf-ts/runtime-rpc\";\nimport type { RpcOptions } from \"@protobuf-ts/runtime-rpc\";\n/**\n *\n * Streaming provides access to an online data stream from an item in storage. Whenever data is appended to an item,\n * the caller receives this fresh data in a stream from the server.\n *\n *\n * @generated from protobuf service MiLaboratories.Controller.Shared.Streaming\n */\nexport interface IStreamingClient {\n /**\n * ReadBinary allows reading a remote item in chunks using a stream-like API.\n * The client receives a single response for each call and has to send new calls\n * to the server to get fresh data from the remote item.\n * Each response (each chunk from the server) contains no more than 3.9MiB of data.\n *\n * @generated from protobuf rpc: ReadBinary\n */\n readBinary(input: StreamingAPI_ReadBinary, options?: RpcOptions): UnaryCall<StreamingAPI_ReadBinary, StreamingAPI_Response>;\n /**\n * ReadText allows reading a remote item in chunks using a stream-like API.\n * The client receives a single response for each call and has to send new calls\n * to the server to get fresh data from the remote item.\n * Each response (each chunk from the server) contains no more than 3.9MiB of data.\n *\n * @generated from protobuf rpc: ReadText\n */\n readText(input: StreamingAPI_ReadText, options?: RpcOptions): UnaryCall<StreamingAPI_ReadText, StreamingAPI_Response>;\n /**\n * LastLines provides a single message with the last lines from the data source.\n * When a search pattern is specified, the last lines matching the given pattern are returned.\n * The lines are returned in reverse order, as the server reads the data source from the end.\n * Consider it equivalent to 'tac <file> | grep <search> | head -n <line_count>'\n * The <new_offset> returned in the response points to the _beginning_ of the last\n * line found, so the client can continue reading the file backwards in subsequent calls.\n * This means that the use of this <new_offset> in ReadText() will return the last line\n * returned in the LastLines() response.\n *\n * @generated from protobuf rpc: LastLines\n */\n lastLines(input: StreamingAPI_LastLines, options?: RpcOptions): UnaryCall<StreamingAPI_LastLines, StreamingAPI_Response>;\n}\n/**\n *\n * Streaming provides access to an online data stream from an item in storage. Whenever data is appended to an item,\n * the caller receives this fresh data in a stream from the server.\n *\n *\n * @generated from protobuf service MiLaboratories.Controller.Shared.Streaming\n */\nexport class StreamingClient implements IStreamingClient, ServiceInfo {\n typeName = Streaming.typeName;\n methods = Streaming.methods;\n options = Streaming.options;\n constructor(private readonly _transport: RpcTransport) {\n }\n /**\n * ReadBinary allows reading a remote item in chunks using a stream-like API.\n * The client receives a single response for each call and has to send new calls\n * to the server to get fresh data from the remote item.\n * Each response (each chunk from the server) contains no more than 3.9MiB of data.\n *\n * @generated from protobuf rpc: ReadBinary\n */\n readBinary(input: StreamingAPI_ReadBinary, options?: RpcOptions): UnaryCall<StreamingAPI_ReadBinary, StreamingAPI_Response> {\n const method = this.methods[0], opt = this._transport.mergeOptions(options);\n return stackIntercept<StreamingAPI_ReadBinary, StreamingAPI_Response>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * ReadText allows reading a remote item in chunks using a stream-like API.\n * The client receives a single response for each call and has to send new calls\n * to the server to get fresh data from the remote item.\n * Each response (each chunk from the server) contains no more than 3.9MiB of data.\n *\n * @generated from protobuf rpc: ReadText\n */\n readText(input: StreamingAPI_ReadText, options?: RpcOptions): UnaryCall<StreamingAPI_ReadText, StreamingAPI_Response> {\n const method = this.methods[1], opt = this._transport.mergeOptions(options);\n return stackIntercept<StreamingAPI_ReadText, StreamingAPI_Response>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * LastLines provides a single message with the last lines from the data source.\n * When a search pattern is specified, the last lines matching the given pattern are returned.\n * The lines are returned in reverse order, as the server reads the data source from the end.\n * Consider it equivalent to 'tac <file> | grep <search> | head -n <line_count>'\n * The <new_offset> returned in the response points to the _beginning_ of the last\n * line found, so the client can continue reading the file backwards in subsequent calls.\n * This means that the use of this <new_offset> in ReadText() will return the last line\n * returned in the LastLines() response.\n *\n * @generated from protobuf rpc: LastLines\n */\n lastLines(input: StreamingAPI_LastLines, options?: RpcOptions): UnaryCall<StreamingAPI_LastLines, StreamingAPI_Response> {\n const method = this.methods[2], opt = this._transport.mergeOptions(options);\n return stackIntercept<StreamingAPI_LastLines, StreamingAPI_Response>(\"unary\", this._transport, method, opt, input);\n }\n}\n"],"mappings":";;;;;;;;;;;;AA8DA,IAAa,kBAAb,MAAsE;CAClE,WAAW,UAAU;CACrB,UAAU,UAAU;CACpB,UAAU,UAAU;CACpB,YAAY,AAAiB,YAA0B;EAA1B;;;;;;;;;;CAU7B,WAAW,OAAgC,SAAiF;EACxH,MAAM,SAAS,KAAK,QAAQ,IAAI,MAAM,KAAK,WAAW,aAAa,QAAQ;AAC3E,SAAO,eAA+D,SAAS,KAAK,YAAY,QAAQ,KAAK,MAAM;;;;;;;;;;CAUvH,SAAS,OAA8B,SAA+E;EAClH,MAAM,SAAS,KAAK,QAAQ,IAAI,MAAM,KAAK,WAAW,aAAa,QAAQ;AAC3E,SAAO,eAA6D,SAAS,KAAK,YAAY,QAAQ,KAAK,MAAM;;;;;;;;;;;;;;CAcrH,UAAU,OAA+B,SAAgF;EACrH,MAAM,SAAS,KAAK,QAAQ,IAAI,MAAM,KAAK,WAAW,aAAa,QAAQ;AAC3E,SAAO,eAA8D,SAAS,KAAK,YAAY,QAAQ,KAAK,MAAM"}
|