@milaboratories/pl-drivers 1.12.7 → 1.12.9
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/_virtual/_rolldown/runtime.cjs +7 -13
- package/dist/clients/constructors.cjs +6 -7
- package/dist/clients/constructors.cjs.map +1 -1
- package/dist/clients/constructors.d.ts.map +1 -0
- package/dist/clients/constructors.js +1 -2
- package/dist/clients/constructors.js.map +1 -1
- package/dist/clients/crc32c.cjs +1 -2
- package/dist/clients/crc32c.cjs.map +1 -1
- package/dist/clients/crc32c.js +1 -1
- package/dist/clients/download.cjs +6 -6
- package/dist/clients/download.cjs.map +1 -1
- package/dist/clients/download.d.ts.map +1 -0
- package/dist/clients/download.js +2 -2
- package/dist/clients/download.js.map +1 -1
- package/dist/clients/logs.cjs +5 -4
- package/dist/clients/logs.cjs.map +1 -1
- package/dist/clients/logs.d.ts.map +1 -0
- package/dist/clients/logs.js +3 -2
- package/dist/clients/logs.js.map +1 -1
- package/dist/clients/ls_api.cjs +4 -4
- package/dist/clients/ls_api.cjs.map +1 -1
- package/dist/clients/ls_api.d.ts.map +1 -0
- package/dist/clients/ls_api.js +2 -2
- package/dist/clients/ls_api.js.map +1 -1
- package/dist/clients/progress.cjs +7 -5
- package/dist/clients/progress.cjs.map +1 -1
- package/dist/clients/progress.d.ts.map +1 -0
- package/dist/clients/progress.js +5 -3
- package/dist/clients/progress.js.map +1 -1
- package/dist/clients/upload.cjs +22 -9
- package/dist/clients/upload.cjs.map +1 -1
- package/dist/clients/upload.d.ts.map +1 -0
- package/dist/clients/upload.js +18 -5
- package/dist/clients/upload.js.map +1 -1
- package/dist/drivers/download_blob/blob_key.cjs +3 -4
- package/dist/drivers/download_blob/blob_key.cjs.map +1 -1
- package/dist/drivers/download_blob/blob_key.js +2 -3
- package/dist/drivers/download_blob/blob_key.js.map +1 -1
- package/dist/drivers/download_blob/download_blob.cjs +13 -14
- package/dist/drivers/download_blob/download_blob.cjs.map +1 -1
- package/dist/drivers/download_blob/download_blob.d.ts.map +1 -0
- package/dist/drivers/download_blob/download_blob.js +1 -2
- package/dist/drivers/download_blob/download_blob.js.map +1 -1
- package/dist/drivers/download_blob/download_blob_task.cjs +4 -5
- package/dist/drivers/download_blob/download_blob_task.cjs.map +1 -1
- package/dist/drivers/download_blob/download_blob_task.js +1 -2
- package/dist/drivers/download_blob/download_blob_task.js.map +1 -1
- package/dist/drivers/download_blob/sparse_cache/cache.cjs +4 -5
- package/dist/drivers/download_blob/sparse_cache/cache.cjs.map +1 -1
- package/dist/drivers/download_blob/sparse_cache/cache.js +1 -2
- package/dist/drivers/download_blob/sparse_cache/cache.js.map +1 -1
- package/dist/drivers/download_blob/sparse_cache/file.cjs +2 -3
- package/dist/drivers/download_blob/sparse_cache/file.cjs.map +1 -1
- package/dist/drivers/download_blob/sparse_cache/file.js +1 -2
- package/dist/drivers/download_blob/sparse_cache/file.js.map +1 -1
- package/dist/drivers/download_blob/sparse_cache/ranges.cjs +3 -4
- package/dist/drivers/download_blob/sparse_cache/ranges.cjs.map +1 -1
- package/dist/drivers/download_blob/sparse_cache/ranges.js +1 -2
- package/dist/drivers/download_blob/sparse_cache/ranges.js.map +1 -1
- package/dist/drivers/download_blob_url/driver.cjs +8 -9
- package/dist/drivers/download_blob_url/driver.cjs.map +1 -1
- package/dist/drivers/download_blob_url/driver.d.ts.map +1 -0
- package/dist/drivers/download_blob_url/driver.js +1 -2
- package/dist/drivers/download_blob_url/driver.js.map +1 -1
- package/dist/drivers/download_blob_url/driver_id.cjs +1 -2
- package/dist/drivers/download_blob_url/driver_id.cjs.map +1 -1
- package/dist/drivers/download_blob_url/driver_id.js +1 -1
- package/dist/drivers/download_blob_url/snapshot.cjs +2 -3
- package/dist/drivers/download_blob_url/snapshot.cjs.map +1 -1
- package/dist/drivers/download_blob_url/snapshot.d.ts +2 -2
- package/dist/drivers/download_blob_url/snapshot.d.ts.map +1 -0
- package/dist/drivers/download_blob_url/snapshot.js +1 -2
- package/dist/drivers/download_blob_url/snapshot.js.map +1 -1
- package/dist/drivers/download_blob_url/task.cjs +5 -6
- package/dist/drivers/download_blob_url/task.cjs.map +1 -1
- package/dist/drivers/download_blob_url/task.d.ts.map +1 -0
- package/dist/drivers/download_blob_url/task.js +1 -2
- package/dist/drivers/download_blob_url/task.js.map +1 -1
- package/dist/drivers/download_url/driver.cjs +7 -8
- package/dist/drivers/download_url/driver.cjs.map +1 -1
- package/dist/drivers/download_url/driver.d.ts.map +1 -0
- package/dist/drivers/download_url/driver.js +1 -2
- package/dist/drivers/download_url/driver.js.map +1 -1
- package/dist/drivers/download_url/task.cjs +4 -5
- package/dist/drivers/download_url/task.cjs.map +1 -1
- package/dist/drivers/download_url/task.d.ts.map +1 -0
- package/dist/drivers/download_url/task.js +1 -2
- package/dist/drivers/download_url/task.js.map +1 -1
- package/dist/drivers/helpers/download_local_handle.cjs +1 -2
- package/dist/drivers/helpers/download_local_handle.cjs.map +1 -1
- package/dist/drivers/helpers/download_local_handle.js +1 -1
- package/dist/drivers/helpers/download_remote_handle.cjs +3 -4
- package/dist/drivers/helpers/download_remote_handle.cjs.map +1 -1
- package/dist/drivers/helpers/download_remote_handle.js +1 -2
- package/dist/drivers/helpers/download_remote_handle.js.map +1 -1
- package/dist/drivers/helpers/files_cache.cjs +2 -3
- package/dist/drivers/helpers/files_cache.cjs.map +1 -1
- package/dist/drivers/helpers/files_cache.js +1 -2
- package/dist/drivers/helpers/files_cache.js.map +1 -1
- package/dist/drivers/helpers/helpers.cjs +1 -2
- package/dist/drivers/helpers/helpers.cjs.map +1 -1
- package/dist/drivers/helpers/helpers.d.ts.map +1 -0
- package/dist/drivers/helpers/helpers.js +1 -1
- package/dist/drivers/helpers/helpers.js.map +1 -1
- package/dist/drivers/helpers/logs_handle.cjs +2 -3
- package/dist/drivers/helpers/logs_handle.cjs.map +1 -1
- package/dist/drivers/helpers/logs_handle.js +1 -2
- package/dist/drivers/helpers/logs_handle.js.map +1 -1
- package/dist/drivers/helpers/ls_remote_import_handle.cjs +4 -6
- package/dist/drivers/helpers/ls_remote_import_handle.cjs.map +1 -1
- package/dist/drivers/helpers/ls_remote_import_handle.js +3 -5
- package/dist/drivers/helpers/ls_remote_import_handle.js.map +1 -1
- package/dist/drivers/helpers/ls_storage_entry.cjs +2 -3
- package/dist/drivers/helpers/ls_storage_entry.cjs.map +1 -1
- package/dist/drivers/helpers/ls_storage_entry.js +1 -2
- package/dist/drivers/helpers/ls_storage_entry.js.map +1 -1
- package/dist/drivers/helpers/polling_ops.d.ts.map +1 -0
- package/dist/drivers/helpers/read_file.cjs +2 -3
- package/dist/drivers/helpers/read_file.cjs.map +1 -1
- package/dist/drivers/helpers/read_file.js +1 -2
- package/dist/drivers/helpers/read_file.js.map +1 -1
- package/dist/drivers/logs.cjs +3 -4
- package/dist/drivers/logs.cjs.map +1 -1
- package/dist/drivers/logs.d.ts.map +1 -0
- package/dist/drivers/logs.js +1 -2
- package/dist/drivers/logs.js.map +1 -1
- package/dist/drivers/logs_stream.cjs +4 -5
- package/dist/drivers/logs_stream.cjs.map +1 -1
- package/dist/drivers/logs_stream.d.ts.map +1 -0
- package/dist/drivers/logs_stream.js +1 -2
- package/dist/drivers/logs_stream.js.map +1 -1
- package/dist/drivers/ls.cjs +7 -8
- package/dist/drivers/ls.cjs.map +1 -1
- package/dist/drivers/ls.d.ts.map +1 -0
- package/dist/drivers/ls.js +1 -2
- package/dist/drivers/ls.js.map +1 -1
- package/dist/drivers/types.cjs +2 -3
- package/dist/drivers/types.cjs.map +1 -1
- package/dist/drivers/types.d.ts +4 -4
- package/dist/drivers/types.d.ts.map +1 -0
- package/dist/drivers/types.js +1 -2
- package/dist/drivers/types.js.map +1 -1
- package/dist/drivers/upload.cjs +5 -6
- package/dist/drivers/upload.cjs.map +1 -1
- package/dist/drivers/upload.d.ts.map +1 -0
- package/dist/drivers/upload.js +1 -2
- package/dist/drivers/upload.js.map +1 -1
- package/dist/drivers/upload_task.cjs +4 -5
- package/dist/drivers/upload_task.cjs.map +1 -1
- package/dist/drivers/upload_task.d.ts.map +1 -0
- package/dist/drivers/upload_task.js +1 -2
- package/dist/drivers/upload_task.js.map +1 -1
- package/dist/drivers/urls/url.cjs +2 -3
- package/dist/drivers/urls/url.cjs.map +1 -1
- package/dist/drivers/urls/url.js +1 -2
- package/dist/drivers/urls/url.js.map +1 -1
- package/dist/drivers/virtual_storages.cjs +2 -3
- package/dist/drivers/virtual_storages.cjs.map +1 -1
- package/dist/drivers/virtual_storages.d.ts.map +1 -0
- package/dist/drivers/virtual_storages.js +1 -2
- package/dist/drivers/virtual_storages.js.map +1 -1
- package/dist/helpers/download.cjs +3 -4
- package/dist/helpers/download.cjs.map +1 -1
- package/dist/helpers/download.d.ts.map +1 -0
- package/dist/helpers/download.js +1 -2
- package/dist/helpers/download.js.map +1 -1
- package/dist/helpers/download_errors.cjs +1 -2
- package/dist/helpers/download_errors.cjs.map +1 -1
- package/dist/helpers/download_errors.d.ts.map +1 -0
- package/dist/helpers/download_errors.js +1 -1
- package/dist/helpers/validate.cjs +2 -3
- package/dist/helpers/validate.cjs.map +1 -1
- package/dist/helpers/validate.d.ts.map +1 -0
- package/dist/helpers/validate.js +1 -2
- package/dist/helpers/validate.js.map +1 -1
- package/dist/index.cjs +22 -23
- package/dist/index.js +1 -2
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.cjs +32 -27
- 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 +4 -5
- 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 +6 -6
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.js +2 -3
- 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.d.ts.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.js +32 -31
- 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 +31 -24
- 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 +7 -8
- 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 +5 -6
- 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.d.ts.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.js +30 -27
- 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 +42 -28
- 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 +4 -5
- 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 +6 -6
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.js +2 -3
- 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.d.ts.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.js +40 -26
- 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 +32 -196
- 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 +23 -45
- 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 +40 -70
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.js +21 -43
- 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.d.ts.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.js +31 -195
- 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 +228 -46
- 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 +24 -11
- 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 +22 -9
- 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.d.ts.map +1 -0
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.js +227 -45
- package/dist/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.js.map +1 -1
- package/dist/proto-grpc/google/protobuf/duration.cjs +2 -3
- package/dist/proto-grpc/google/protobuf/duration.cjs.map +1 -1
- package/dist/proto-grpc/google/protobuf/duration.d.ts.map +1 -0
- package/dist/proto-grpc/google/protobuf/duration.js +1 -2
- package/dist/proto-grpc/google/protobuf/duration.js.map +1 -1
- package/dist/proto-grpc/google/protobuf/timestamp.cjs +2 -3
- package/dist/proto-grpc/google/protobuf/timestamp.cjs.map +1 -1
- package/dist/proto-grpc/google/protobuf/timestamp.d.ts.map +1 -0
- package/dist/proto-grpc/google/protobuf/timestamp.js +1 -2
- package/dist/proto-grpc/google/protobuf/timestamp.js.map +1 -1
- package/dist/proto-rest/downloadapi.d.ts +8 -3
- package/dist/proto-rest/downloadapi.d.ts.map +1 -0
- package/dist/proto-rest/index.d.ts.map +1 -0
- package/dist/proto-rest/progressapi.d.ts +4 -2
- package/dist/proto-rest/progressapi.d.ts.map +1 -0
- package/dist/proto-rest/streamingapi.d.ts +64 -203
- package/dist/proto-rest/streamingapi.d.ts.map +1 -0
- package/package.json +10 -10
- 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,11 +1,10 @@
|
|
|
1
1
|
import { Streaming } from "./protocol.js";
|
|
2
2
|
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
3
|
-
|
|
4
3
|
//#region src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.ts
|
|
5
4
|
/**
|
|
6
5
|
*
|
|
7
|
-
* Streaming provides access to online data stream from item in storage. Whenever
|
|
8
|
-
* the caller receives this fresh data in stream from server.
|
|
6
|
+
* Streaming provides access to an online data stream from an item in storage. Whenever data is appended to an item,
|
|
7
|
+
* the caller receives this fresh data in a stream from the server.
|
|
9
8
|
*
|
|
10
9
|
*
|
|
11
10
|
* @generated from protobuf service MiLaboratories.Controller.Shared.Streaming
|
|
@@ -18,68 +17,47 @@ var StreamingClient = class {
|
|
|
18
17
|
this._transport = _transport;
|
|
19
18
|
}
|
|
20
19
|
/**
|
|
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.
|
|
20
|
+
* ReadBinary allows reading a remote item in chunks using a stream-like API.
|
|
21
|
+
* The client receives a single response for each call and has to send new calls
|
|
22
|
+
* to the server to get fresh data from the remote item.
|
|
23
|
+
* Each response (each chunk from the server) contains no more than 3.9MiB of data.
|
|
36
24
|
*
|
|
37
25
|
* @generated from protobuf rpc: ReadBinary
|
|
38
26
|
*/
|
|
39
27
|
readBinary(input, options) {
|
|
40
|
-
const method = this.methods[
|
|
28
|
+
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
41
29
|
return stackIntercept("unary", this._transport, method, opt, input);
|
|
42
30
|
}
|
|
43
31
|
/**
|
|
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.
|
|
32
|
+
* ReadText allows reading a remote item in chunks using a stream-like API.
|
|
33
|
+
* The client receives a single response for each call and has to send new calls
|
|
34
|
+
* to the server to get fresh data from the remote item.
|
|
35
|
+
* Each response (each chunk from the server) contains no more than 3.9MiB of data.
|
|
58
36
|
*
|
|
59
37
|
* @generated from protobuf rpc: ReadText
|
|
60
38
|
*/
|
|
61
39
|
readText(input, options) {
|
|
62
|
-
const method = this.methods[
|
|
40
|
+
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
63
41
|
return stackIntercept("unary", this._transport, method, opt, input);
|
|
64
42
|
}
|
|
65
43
|
/**
|
|
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
|
|
44
|
+
* LastLines provides a single message with the last lines from the data source.
|
|
45
|
+
* When a search pattern is specified, the last lines matching the given pattern are returned.
|
|
46
|
+
* The lines are returned in reverse order, as the server reads the data source from the end.
|
|
47
|
+
* Consider it equivalent to 'tac <file> | grep <search> | head -n <line_count>'
|
|
70
48
|
* 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
|
|
49
|
+
* line found, so the client can continue reading the file backwards in subsequent calls.
|
|
50
|
+
* This means that the use of this <new_offset> in ReadText() will return the last line
|
|
51
|
+
* returned in the LastLines() response.
|
|
74
52
|
*
|
|
75
53
|
* @generated from protobuf rpc: LastLines
|
|
76
54
|
*/
|
|
77
55
|
lastLines(input, options) {
|
|
78
|
-
const method = this.methods[
|
|
56
|
+
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
79
57
|
return stackIntercept("unary", this._transport, method, opt, input);
|
|
80
58
|
}
|
|
81
59
|
};
|
|
82
|
-
|
|
83
60
|
//#endregion
|
|
84
61
|
export { StreamingClient };
|
|
62
|
+
|
|
85
63
|
//# sourceMappingURL=protocol.client.js.map
|
|
@@ -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,YAA2C;AAA1B,OAAA,aAAA;;;;;;;;;;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"}
|
|
@@ -3,54 +3,23 @@ import { BinaryReadOptions, BinaryWriteOptions, IBinaryReader, IBinaryWriter, Me
|
|
|
3
3
|
|
|
4
4
|
//#region src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts
|
|
5
5
|
/**
|
|
6
|
-
* @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI.
|
|
6
|
+
* @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI.ReadBinary
|
|
7
7
|
*/
|
|
8
|
-
interface
|
|
8
|
+
interface StreamingAPI_ReadBinary {
|
|
9
9
|
/**
|
|
10
|
-
* <resource_id> of Stream resource
|
|
10
|
+
* <resource_id> of Stream resource that keeps info on item to be streamed.
|
|
11
11
|
*
|
|
12
12
|
* @generated from protobuf field: uint64 resource_id = 1
|
|
13
13
|
*/
|
|
14
14
|
resourceId: bigint;
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
* @generated from protobuf field: int64 offset = 2
|
|
19
|
-
*/
|
|
20
|
-
offset: bigint;
|
|
21
|
-
/**
|
|
22
|
-
* <chunk_size> limits the maximum size of <data> for each response message in stream.
|
|
23
|
-
*
|
|
24
|
-
* Default value: 32 768 (32 KiB)
|
|
25
|
-
* Max value: 3900 * 1024 (3.9 MiB)
|
|
16
|
+
* Signature proving the caller is authorized to access this resource.
|
|
26
17
|
*
|
|
27
|
-
* @generated from protobuf field: optional
|
|
18
|
+
* @generated from protobuf field: optional bytes resource_signature = 3
|
|
28
19
|
*/
|
|
29
|
-
|
|
20
|
+
resourceSignature?: Uint8Array;
|
|
30
21
|
/**
|
|
31
|
-
* <
|
|
32
|
-
* This limit is aggregation of all data, sent in all chunks.
|
|
33
|
-
* E.g. to read 2000 bytes of data in chunks of at most
|
|
34
|
-
* 130 bytes, use <chunk_size> = 130; <read_limit> = 2000.
|
|
35
|
-
* For storage item of appropriate size this settings will result in
|
|
36
|
-
* 16 messages from server: 15 of 130 bytes and one of 50 bytes.
|
|
37
|
-
*
|
|
38
|
-
* @generated from protobuf field: optional int64 read_limit = 20
|
|
39
|
-
*/
|
|
40
|
-
readLimit?: bigint;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI.ReadBinary
|
|
44
|
-
*/
|
|
45
|
-
interface StreamingAPI_ReadBinary {
|
|
46
|
-
/**
|
|
47
|
-
* <resource_id> of Stream resource, that keeps info on item to be streamed.
|
|
48
|
-
*
|
|
49
|
-
* @generated from protobuf field: uint64 resource_id = 1
|
|
50
|
-
*/
|
|
51
|
-
resourceId: bigint;
|
|
52
|
-
/**
|
|
53
|
-
* <offset> makes streamer to perform seek operation to given offset before sending the data.
|
|
22
|
+
* <offset> makes the streamer perform a seek operation to the given offset before sending the data.
|
|
54
23
|
*
|
|
55
24
|
* @generated from protobuf field: int64 offset = 2
|
|
56
25
|
*/
|
|
@@ -66,94 +35,54 @@ interface StreamingAPI_ReadBinary {
|
|
|
66
35
|
chunkSize?: number;
|
|
67
36
|
}
|
|
68
37
|
/**
|
|
69
|
-
* @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI.
|
|
38
|
+
* @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI.ReadText
|
|
70
39
|
*/
|
|
71
|
-
interface
|
|
40
|
+
interface StreamingAPI_ReadText {
|
|
72
41
|
/**
|
|
73
|
-
* <resource_id> of Stream resource
|
|
42
|
+
* <resource_id> of Stream resource that keeps info on item to be streamed.
|
|
74
43
|
*
|
|
75
44
|
* @generated from protobuf field: uint64 resource_id = 1
|
|
76
45
|
*/
|
|
77
46
|
resourceId: bigint;
|
|
78
47
|
/**
|
|
79
|
-
*
|
|
80
|
-
* This offset is taken in BYTES, as it eases streaming recovery after client reconnection or controller restart.
|
|
81
|
-
* Client can just use the <new_offset> value of the last response from server to continue streaming after reconnection.
|
|
48
|
+
* Signature proving the caller is authorized to access this resource.
|
|
82
49
|
*
|
|
83
|
-
* @generated from protobuf field:
|
|
50
|
+
* @generated from protobuf field: optional bytes resource_signature = 3
|
|
84
51
|
*/
|
|
85
|
-
|
|
52
|
+
resourceSignature?: Uint8Array;
|
|
86
53
|
/**
|
|
87
|
-
* <
|
|
88
|
-
* This
|
|
89
|
-
*
|
|
90
|
-
* E.g. to read top 1000 lines from stream source, use <read_limit> = 1000.
|
|
91
|
-
* When both <read_limit> and <search>/<search_re> are set, the <read_limit> is applied first.
|
|
92
|
-
* this is equivalent to 'head -n <read_limit> | grep <search>'.
|
|
93
|
-
*
|
|
94
|
-
* @generated from protobuf field: optional int64 read_limit = 20
|
|
95
|
-
*/
|
|
96
|
-
readLimit?: bigint;
|
|
97
|
-
/**
|
|
98
|
-
* <search> is substring for line search pattern.
|
|
99
|
-
* This option makes controller to send to the client only lines, that
|
|
100
|
-
* have given substring.
|
|
101
|
-
*
|
|
102
|
-
* @generated from protobuf field: optional string search = 21
|
|
103
|
-
*/
|
|
104
|
-
search?: string;
|
|
105
|
-
/**
|
|
106
|
-
* <search_re> is regular expression for line search pattern.
|
|
107
|
-
* This option makes controller to send to the client only lines, that
|
|
108
|
-
* match given regular expression.
|
|
109
|
-
*
|
|
110
|
-
* @generated from protobuf field: optional string search_re = 22
|
|
111
|
-
*/
|
|
112
|
-
searchRe?: string;
|
|
113
|
-
}
|
|
114
|
-
/**
|
|
115
|
-
* @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI.ReadText
|
|
116
|
-
*/
|
|
117
|
-
interface StreamingAPI_ReadText {
|
|
118
|
-
/**
|
|
119
|
-
* <resource_id> of Stream resource, that keeps info on item to be streamed.
|
|
120
|
-
*
|
|
121
|
-
* @generated from protobuf field: uint64 resource_id = 1
|
|
122
|
-
*/
|
|
123
|
-
resourceId: bigint;
|
|
124
|
-
/**
|
|
125
|
-
* <offset> makes streamer to perform seek operation to given offset before sending the contents.
|
|
126
|
-
* This offset is taken in BYTES, as it eases streaming recovery after client reconnection or controller restart.
|
|
127
|
-
* Client can just use the <new_offset> value of the last response from server to continue streaming after reconnection.
|
|
54
|
+
* <offset> makes the streamer perform a seek operation to the given offset before sending the contents.
|
|
55
|
+
* This offset is taken in BYTES, as it eases streaming recovery after a client reconnection or controller restart.
|
|
56
|
+
* The client can just use the <new_offset> value of the last response from the server to continue streaming after reconnection.
|
|
128
57
|
*
|
|
129
58
|
* @generated from protobuf field: int64 offset = 2
|
|
130
59
|
*/
|
|
131
60
|
offset: bigint;
|
|
132
61
|
/**
|
|
133
|
-
* <read_limit> allows client to limit total data sent from server.
|
|
62
|
+
* <read_limit> allows the client to limit total data sent from the server.
|
|
134
63
|
* Measured in lines of text.
|
|
135
64
|
* E.g. to read top 1000 lines from stream source, use <read_limit> = 1000.
|
|
136
65
|
* When both <read_limit> and <search>/<search_re> are set, the <read_limit> is applied first.
|
|
137
|
-
*
|
|
138
|
-
* At most 3.9 MiB (3900
|
|
66
|
+
* This is equivalent to 'head -n <read_limit> | grep <search>'.
|
|
67
|
+
* At most 3.9 MiB (3900 KiB) of data is returned in a single read regardless of the <read_limit> option
|
|
139
68
|
* Only full lines of text are returned except for the last line from the completed source
|
|
140
|
-
* (the one that is not expected to have new data, like blob in storage)
|
|
69
|
+
* (the one that is not expected to have new data, like a blob in storage)
|
|
141
70
|
*
|
|
142
71
|
* @generated from protobuf field: optional int64 read_limit = 20
|
|
143
72
|
*/
|
|
144
73
|
readLimit?: bigint;
|
|
145
74
|
/**
|
|
146
|
-
* <search> is substring for line search pattern.
|
|
147
|
-
* This option makes controller
|
|
148
|
-
* have given substring.
|
|
75
|
+
* <search> is a substring for the line search pattern.
|
|
76
|
+
* This option makes the controller send to the client only lines that
|
|
77
|
+
* have the given substring.
|
|
149
78
|
*
|
|
150
79
|
* @generated from protobuf field: optional string search = 21
|
|
151
80
|
*/
|
|
152
81
|
search?: string;
|
|
153
82
|
/**
|
|
154
|
-
* <search_re> is regular expression for line search pattern.
|
|
155
|
-
* This option makes controller
|
|
156
|
-
* match given regular expression.
|
|
83
|
+
* <search_re> is a regular expression for the line search pattern.
|
|
84
|
+
* This option makes the controller send to the client only lines that
|
|
85
|
+
* match the given regular expression.
|
|
157
86
|
*
|
|
158
87
|
* @generated from protobuf field: optional string search_re = 22
|
|
159
88
|
*/
|
|
@@ -164,39 +93,45 @@ interface StreamingAPI_ReadText {
|
|
|
164
93
|
*/
|
|
165
94
|
interface StreamingAPI_LastLines {
|
|
166
95
|
/**
|
|
167
|
-
* <resource_id> of Stream resource
|
|
96
|
+
* <resource_id> of Stream resource that keeps info on item to be streamed.
|
|
168
97
|
*
|
|
169
98
|
* @generated from protobuf field: uint64 resource_id = 1
|
|
170
99
|
*/
|
|
171
100
|
resourceId: bigint;
|
|
172
101
|
/**
|
|
173
|
-
*
|
|
174
|
-
*
|
|
175
|
-
*
|
|
176
|
-
|
|
102
|
+
* Signature proving the caller is authorized to access this resource.
|
|
103
|
+
*
|
|
104
|
+
* @generated from protobuf field: optional bytes resource_signature = 4
|
|
105
|
+
*/
|
|
106
|
+
resourceSignature?: Uint8Array;
|
|
107
|
+
/**
|
|
108
|
+
* <offset> makes the streamer perform a seek operation to the given offset before sending the contents.
|
|
109
|
+
* This offset is taken in BYTES, as it eases streaming recovery after a client reconnection or controller restart.
|
|
110
|
+
* By default, LastLines starts reading the data source from the very last byte available in the data stream
|
|
111
|
+
* at the moment of the call, but the client can set the server to start from an earlier position.
|
|
177
112
|
*
|
|
178
113
|
* @generated from protobuf field: optional int64 offset = 2
|
|
179
114
|
*/
|
|
180
115
|
offset?: bigint;
|
|
181
116
|
/**
|
|
182
|
-
* <line_count> makes streamer
|
|
117
|
+
* <line_count> makes the streamer return up to <line_count> lines to the client.
|
|
183
118
|
* Default value: 1
|
|
184
119
|
*
|
|
185
120
|
* @generated from protobuf field: optional int32 line_count = 3
|
|
186
121
|
*/
|
|
187
122
|
lineCount?: number;
|
|
188
123
|
/**
|
|
189
|
-
* <search> is substring for line search pattern.
|
|
190
|
-
* This option makes controller
|
|
191
|
-
* have given substring.
|
|
124
|
+
* <search> is a substring for the line search pattern.
|
|
125
|
+
* This option makes the controller send to the client only lines that
|
|
126
|
+
* have the given substring.
|
|
192
127
|
*
|
|
193
128
|
* @generated from protobuf field: optional string search = 21
|
|
194
129
|
*/
|
|
195
130
|
search?: string;
|
|
196
131
|
/**
|
|
197
|
-
* <search_re> is regular expression for line search pattern.
|
|
198
|
-
* This option makes controller
|
|
199
|
-
* match given regular expression.
|
|
132
|
+
* <search_re> is a regular expression for the line search pattern.
|
|
133
|
+
* This option makes the controller send to the client only lines that
|
|
134
|
+
* match the given regular expression.
|
|
200
135
|
*
|
|
201
136
|
* @generated from protobuf field: optional string search_re = 22
|
|
202
137
|
*/
|
|
@@ -207,16 +142,16 @@ interface StreamingAPI_LastLines {
|
|
|
207
142
|
*/
|
|
208
143
|
interface StreamingAPI_Response {
|
|
209
144
|
/**
|
|
210
|
-
* data chunk from item, starting from the <new_offset> of the previous message in the same stream.
|
|
145
|
+
* data chunk from the item, starting from the <new_offset> of the previous message in the same stream.
|
|
211
146
|
*
|
|
212
147
|
* @generated from protobuf field: bytes data = 1
|
|
213
148
|
*/
|
|
214
149
|
data: Uint8Array;
|
|
215
150
|
/**
|
|
216
151
|
* <size> is the actual size of the streamed item at the moment of this message.
|
|
217
|
-
* This might be
|
|
218
|
-
* by
|
|
219
|
-
* This field in combination with <new_offset> shows
|
|
152
|
+
* This might not be the final amount of streamed data, as the stream source can be updated
|
|
153
|
+
* by another independent process (e.g., data is written to a log file).
|
|
154
|
+
* This field in combination with <new_offset> shows how far the client is from the end
|
|
220
155
|
* of the data right now.
|
|
221
156
|
*
|
|
222
157
|
* @generated from protobuf field: uint64 size = 2
|
|
@@ -224,9 +159,9 @@ interface StreamingAPI_Response {
|
|
|
224
159
|
size: bigint;
|
|
225
160
|
/**
|
|
226
161
|
* <new_offset> is the new offset in bytes from the start of the streamed item,
|
|
227
|
-
* including size of <data> in current response.
|
|
228
|
-
*
|
|
229
|
-
* streaming from the place of last received message
|
|
162
|
+
* including the size of <data> in the current response.
|
|
163
|
+
* A call to the Stream RPC with <offset> = <new_offset> will continue
|
|
164
|
+
* streaming from the place of the last received message
|
|
230
165
|
* (e.g. <offset> = <new_offset> - 1 will repeat the last byte of
|
|
231
166
|
* previously received <data>)
|
|
232
167
|
*
|
|
@@ -234,16 +169,6 @@ interface StreamingAPI_Response {
|
|
|
234
169
|
*/
|
|
235
170
|
newOffset: bigint;
|
|
236
171
|
}
|
|
237
|
-
declare class StreamingAPI_StreamBinary$Type extends MessageType<StreamingAPI_StreamBinary> {
|
|
238
|
-
constructor();
|
|
239
|
-
create(value?: PartialMessage<StreamingAPI_StreamBinary>): StreamingAPI_StreamBinary;
|
|
240
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamingAPI_StreamBinary): StreamingAPI_StreamBinary;
|
|
241
|
-
internalBinaryWrite(message: StreamingAPI_StreamBinary, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
242
|
-
}
|
|
243
|
-
/**
|
|
244
|
-
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI.StreamBinary
|
|
245
|
-
*/
|
|
246
|
-
declare const StreamingAPI_StreamBinary: StreamingAPI_StreamBinary$Type;
|
|
247
172
|
declare class StreamingAPI_ReadBinary$Type extends MessageType<StreamingAPI_ReadBinary> {
|
|
248
173
|
constructor();
|
|
249
174
|
create(value?: PartialMessage<StreamingAPI_ReadBinary>): StreamingAPI_ReadBinary;
|
|
@@ -254,16 +179,6 @@ declare class StreamingAPI_ReadBinary$Type extends MessageType<StreamingAPI_Read
|
|
|
254
179
|
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI.ReadBinary
|
|
255
180
|
*/
|
|
256
181
|
declare const StreamingAPI_ReadBinary: StreamingAPI_ReadBinary$Type;
|
|
257
|
-
declare class StreamingAPI_StreamText$Type extends MessageType<StreamingAPI_StreamText> {
|
|
258
|
-
constructor();
|
|
259
|
-
create(value?: PartialMessage<StreamingAPI_StreamText>): StreamingAPI_StreamText;
|
|
260
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamingAPI_StreamText): StreamingAPI_StreamText;
|
|
261
|
-
internalBinaryWrite(message: StreamingAPI_StreamText, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
262
|
-
}
|
|
263
|
-
/**
|
|
264
|
-
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI.StreamText
|
|
265
|
-
*/
|
|
266
|
-
declare const StreamingAPI_StreamText: StreamingAPI_StreamText$Type;
|
|
267
182
|
declare class StreamingAPI_ReadText$Type extends MessageType<StreamingAPI_ReadText> {
|
|
268
183
|
constructor();
|
|
269
184
|
create(value?: PartialMessage<StreamingAPI_ReadText>): StreamingAPI_ReadText;
|
|
@@ -295,5 +210,5 @@ declare class StreamingAPI_Response$Type extends MessageType<StreamingAPI_Respon
|
|
|
295
210
|
*/
|
|
296
211
|
declare const StreamingAPI_Response: StreamingAPI_Response$Type;
|
|
297
212
|
//#endregion
|
|
298
|
-
export { StreamingAPI_LastLines, StreamingAPI_ReadBinary, StreamingAPI_ReadText, StreamingAPI_Response
|
|
213
|
+
export { StreamingAPI_LastLines, StreamingAPI_ReadBinary, StreamingAPI_ReadText, StreamingAPI_Response };
|
|
299
214
|
//# sourceMappingURL=protocol.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"protocol.d.ts","names":[],"sources":["../../../../../../../../../src/proto-grpc/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.ts"],"mappings":";;;;;;;UAqBiB,uBAAA;EAgCqB;;;;;EA1BlC,UAAA;EA8CA;;;;;EAxCA,iBAAA,GAAoB,UAAA;EA0EP;;;;;EApEb,MAAA;EAgFoB;;;;;;;AAqCxB;EA5GI,SAAA;AAAA;;;;UAKa,qBAAA;EAkIb;;;AAuCgD;;EAnKhD,UAAA;EAqKmD;;;;;EA/JnD,iBAAA,GAAoB,UAAA;EAgL2E;;;;;;;EAxK/F,MAAA;EAuJkD;;;;;;;;;;;;EA1IlD,SAAA;EA2JmE;;;;;;;EAnJnE,MAAA;EA+K8D;;;;;;;EAvK9D,QAAA;AAAA;;;;UAKa,sBAAA;EA0LgB;;;;;EApL7B,UAAA;EAuM2B;;;;;EAjM3B,iBAAA,GAAoB,UAAA;EAmOgE;;;;;;;;EA1NpF,MAAA;EAgLe;;;;;;EAzKf,SAAA;EAiL0C;;;;;;;EAzK1C,MAAA;EA2MoB;;;;;;;EAnMpB,QAAA;AAAA;;;;UAKa,qBAAA;EA4NX;;;;;EAtNF,IAAA,EAAM,UAAA;EAiOkD;;;;;;;;;EAvNxD,IAAA;EA4MiD;;;;;;;;;;EAjMjD,SAAA;AAAA;AAAA,cAyCE,4BAAA,SAAqC,WAAA,CAAY,uBAAA;;EASnD,MAAA,CAAO,KAAA,GAAQ,cAAA,CAAe,uBAAA,IAA2B,uBAAA;EAQzD,kBAAA,CAAmB,MAAA,EAAQ,aAAA,EAAe,MAAA,UAAgB,OAAA,EAAS,iBAAA,EAAmB,MAAA,GAAS,uBAAA,GAA0B,uBAAA;EA4BzH,mBAAA,CAAoB,OAAA,EAAS,uBAAA,EAAyB,MAAA,EAAQ,aAAA,EAAe,OAAA,EAAS,kBAAA,GAAqB,aAAA;AAAA;;AA2L/G;;cArKa,uBAAA,EAAuB,4BAAA;AAAA,cAE9B,0BAAA,SAAmC,WAAA,CAAY,qBAAA;;EAWjD,MAAA,CAAO,KAAA,GAAQ,cAAA,CAAe,qBAAA,IAAyB,qBAAA;EAQvD,kBAAA,CAAmB,MAAA,EAAQ,aAAA,EAAe,MAAA,UAAgB,OAAA,EAAS,iBAAA,EAAmB,MAAA,GAAS,qBAAA,GAAwB,qBAAA;EAkCvH,mBAAA,CAAoB,OAAA,EAAS,qBAAA,EAAuB,MAAA,EAAQ,aAAA,EAAe,OAAA,EAAS,kBAAA,GAAqB,aAAA;AAAA;;;;cA4BhG,qBAAA,EAAqB,0BAAA;AAAA,cAE5B,2BAAA,SAAoC,WAAA,CAAY,sBAAA;;EAWlD,MAAA,CAAO,KAAA,GAAQ,cAAA,CAAe,sBAAA,IAA0B,sBAAA;EAOxD,kBAAA,CAAmB,MAAA,EAAQ,aAAA,EAAe,MAAA,UAAgB,OAAA,EAAS,iBAAA,EAAmB,MAAA,GAAS,sBAAA,GAAyB,sBAAA;EAkCxH,mBAAA,CAAoB,OAAA,EAAS,sBAAA,EAAwB,MAAA,EAAQ,aAAA,EAAe,OAAA,EAAS,kBAAA,GAAqB,aAAA;AAAA;;;;cA4BjG,sBAAA,EAAsB,2BAAA;AAAA,cAE7B,0BAAA,SAAmC,WAAA,CAAY,qBAAA;;EAQjD,MAAA,CAAO,KAAA,GAAQ,cAAA,CAAe,qBAAA,IAAyB,qBAAA;EASvD,kBAAA,CAAmB,MAAA,EAAQ,aAAA,EAAe,MAAA,UAAgB,OAAA,EAAS,iBAAA,EAAmB,MAAA,GAAS,qBAAA,GAAwB,qBAAA;EAyBvH,mBAAA,CAAoB,OAAA,EAAS,qBAAA,EAAuB,MAAA,EAAQ,aAAA,EAAe,OAAA,EAAS,kBAAA,GAAqB,aAAA;AAAA;;;;cAmBhG,qBAAA,EAAqB,0BAAA"}
|