forked from TrueCloudLab/frostfs-api
make object.Search to be server-side streaming RPC
This commit is contained in:
parent
cc35580700
commit
63b956e50c
2 changed files with 4 additions and 3 deletions
|
@ -40,7 +40,7 @@ service Service {
|
||||||
// Search objects in container. Version of query language format SHOULD BE
|
// Search objects in container. Version of query language format SHOULD BE
|
||||||
// set to 1. Search query represented in serialized format (see query
|
// set to 1. Search query represented in serialized format (see query
|
||||||
// package).
|
// package).
|
||||||
rpc Search(SearchRequest) returns (SearchResponse);
|
rpc Search(SearchRequest) returns (stream SearchResponse);
|
||||||
|
|
||||||
// GetRange of data payload. Ranges are set of pairs (offset, length).
|
// GetRange of data payload. Ranges are set of pairs (offset, length).
|
||||||
// Fragments order in response corresponds to ranges order in request.
|
// Fragments order in response corresponds to ranges order in request.
|
||||||
|
|
|
@ -63,7 +63,7 @@ rpc Get(GetRequest) returns (stream GetResponse);
|
||||||
rpc Put(stream PutRequest) returns (PutResponse);
|
rpc Put(stream PutRequest) returns (PutResponse);
|
||||||
rpc Delete(DeleteRequest) returns (DeleteResponse);
|
rpc Delete(DeleteRequest) returns (DeleteResponse);
|
||||||
rpc Head(HeadRequest) returns (HeadResponse);
|
rpc Head(HeadRequest) returns (HeadResponse);
|
||||||
rpc Search(SearchRequest) returns (SearchResponse);
|
rpc Search(SearchRequest) returns (stream SearchResponse);
|
||||||
rpc GetRange(GetRangeRequest) returns (GetRangeResponse);
|
rpc GetRange(GetRangeRequest) returns (GetRangeResponse);
|
||||||
rpc GetRangeHash(GetRangeHashRequest) returns (GetRangeHashResponse);
|
rpc GetRangeHash(GetRangeHashRequest) returns (GetRangeHashResponse);
|
||||||
|
|
||||||
|
@ -112,7 +112,8 @@ headers are also present.
|
||||||
|
|
||||||
Search objects in container. Version of query language format SHOULD BE
|
Search objects in container. Version of query language format SHOULD BE
|
||||||
set to 1. Search query represented in serialized format (see query
|
set to 1. Search query represented in serialized format (see query
|
||||||
package).
|
package). Requested list can be restored by concatenation of addresses
|
||||||
|
from all messages. Addresses from resulting list are expected to be unique.
|
||||||
|
|
||||||
| Name | Input | Output |
|
| Name | Input | Output |
|
||||||
| ---- | ----- | ------ |
|
| ---- | ----- | ------ |
|
||||||
|
|
Loading…
Reference in a new issue