object: Remove response meta header
This commit removes ResponseMetaHeader from the repository since it is not verifiable and its purpose is questionable. If needed, it can be added to queries without losing compatibility with the API version. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
3518fc42bd
commit
23f571f76f
4 changed files with 0 additions and 49 deletions
|
@ -71,9 +71,6 @@ message GetResponse {
|
||||||
// Chunk of remaining payload
|
// Chunk of remaining payload
|
||||||
bytes Chunk = 2;
|
bytes Chunk = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ResponseMetaHeader contains meta information based on request processing by server (should be embedded into message)
|
|
||||||
service.ResponseMetaHeader Meta = 99;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
message PutRequest {
|
message PutRequest {
|
||||||
|
@ -100,8 +97,6 @@ message PutRequest {
|
||||||
message PutResponse {
|
message PutResponse {
|
||||||
// Address of object (container id + object id)
|
// Address of object (container id + object id)
|
||||||
refs.Address Address = 1;
|
refs.Address Address = 1;
|
||||||
// ResponseMetaHeader contains meta information based on request processing by server (should be embedded into message)
|
|
||||||
service.ResponseMetaHeader Meta = 99;
|
|
||||||
}
|
}
|
||||||
message DeleteRequest {
|
message DeleteRequest {
|
||||||
// Address of object (container id + object id)
|
// Address of object (container id + object id)
|
||||||
|
@ -117,8 +112,6 @@ message DeleteRequest {
|
||||||
// DeleteResponse is empty because we cannot guarantee permanent object removal
|
// DeleteResponse is empty because we cannot guarantee permanent object removal
|
||||||
// in distributed system.
|
// in distributed system.
|
||||||
message DeleteResponse {
|
message DeleteResponse {
|
||||||
// ResponseMetaHeader contains meta information based on request processing by server (should be embedded into message)
|
|
||||||
service.ResponseMetaHeader Meta = 99;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
message HeadRequest {
|
message HeadRequest {
|
||||||
|
@ -138,8 +131,6 @@ message HeadRequest {
|
||||||
message HeadResponse {
|
message HeadResponse {
|
||||||
// Object without payload
|
// Object without payload
|
||||||
Object Object = 1;
|
Object Object = 1;
|
||||||
// ResponseMetaHeader contains meta information based on request processing by server (should be embedded into message)
|
|
||||||
service.ResponseMetaHeader Meta = 99;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
message SearchRequest {
|
message SearchRequest {
|
||||||
|
@ -176,8 +167,6 @@ message SearchRequest {
|
||||||
message SearchResponse {
|
message SearchResponse {
|
||||||
// Addresses of found objects
|
// Addresses of found objects
|
||||||
repeated refs.Address Addresses = 1;
|
repeated refs.Address Addresses = 1;
|
||||||
// ResponseMetaHeader contains meta information based on request processing by server (should be embedded into message)
|
|
||||||
service.ResponseMetaHeader Meta = 99;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
message Range {
|
message Range {
|
||||||
|
@ -201,8 +190,6 @@ message GetRangeRequest {
|
||||||
message GetRangeResponse {
|
message GetRangeResponse {
|
||||||
// Fragment of object's payload
|
// Fragment of object's payload
|
||||||
bytes Fragment = 1;
|
bytes Fragment = 1;
|
||||||
// ResponseMetaHeader contains meta information based on request processing by server (should be embedded into message)
|
|
||||||
service.ResponseMetaHeader Meta = 99;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
message GetRangeHashRequest {
|
message GetRangeHashRequest {
|
||||||
|
@ -221,7 +208,5 @@ message GetRangeHashRequest {
|
||||||
message GetRangeHashResponse {
|
message GetRangeHashResponse {
|
||||||
// Hashes is a homomorphic hashes of all ranges
|
// Hashes is a homomorphic hashes of all ranges
|
||||||
repeated bytes Hashes = 1;
|
repeated bytes Hashes = 1;
|
||||||
// ResponseMetaHeader contains meta information based on request processing by server (should be embedded into message)
|
|
||||||
service.ResponseMetaHeader Meta = 99;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -161,10 +161,6 @@ DeleteResponse is empty because we cannot guarantee permanent object removal
|
||||||
in distributed system.
|
in distributed system.
|
||||||
|
|
||||||
|
|
||||||
| Field | Type | Label | Description |
|
|
||||||
| ----- | ---- | ----- | ----------- |
|
|
||||||
| Meta | [service.ResponseMetaHeader](#service.ResponseMetaHeader) | | ResponseMetaHeader contains meta information based on request processing by server (should be embedded into message) |
|
|
||||||
|
|
||||||
|
|
||||||
<a name="object.GetRangeHashRequest"></a>
|
<a name="object.GetRangeHashRequest"></a>
|
||||||
|
|
||||||
|
@ -190,7 +186,6 @@ in distributed system.
|
||||||
| Field | Type | Label | Description |
|
| Field | Type | Label | Description |
|
||||||
| ----- | ---- | ----- | ----------- |
|
| ----- | ---- | ----- | ----------- |
|
||||||
| Hashes | [bytes](#bytes) | repeated | Hashes is a homomorphic hashes of all ranges |
|
| Hashes | [bytes](#bytes) | repeated | Hashes is a homomorphic hashes of all ranges |
|
||||||
| Meta | [service.ResponseMetaHeader](#service.ResponseMetaHeader) | | ResponseMetaHeader contains meta information based on request processing by server (should be embedded into message) |
|
|
||||||
|
|
||||||
|
|
||||||
<a name="object.GetRangeRequest"></a>
|
<a name="object.GetRangeRequest"></a>
|
||||||
|
@ -216,7 +211,6 @@ in distributed system.
|
||||||
| Field | Type | Label | Description |
|
| Field | Type | Label | Description |
|
||||||
| ----- | ---- | ----- | ----------- |
|
| ----- | ---- | ----- | ----------- |
|
||||||
| Fragment | [bytes](#bytes) | | Fragment of object's payload |
|
| Fragment | [bytes](#bytes) | | Fragment of object's payload |
|
||||||
| Meta | [service.ResponseMetaHeader](#service.ResponseMetaHeader) | | ResponseMetaHeader contains meta information based on request processing by server (should be embedded into message) |
|
|
||||||
|
|
||||||
|
|
||||||
<a name="object.GetRequest"></a>
|
<a name="object.GetRequest"></a>
|
||||||
|
@ -243,7 +237,6 @@ in distributed system.
|
||||||
| ----- | ---- | ----- | ----------- |
|
| ----- | ---- | ----- | ----------- |
|
||||||
| object | [Object](#object.Object) | | Object header and some payload |
|
| object | [Object](#object.Object) | | Object header and some payload |
|
||||||
| Chunk | [bytes](#bytes) | | Chunk of remaining payload |
|
| Chunk | [bytes](#bytes) | | Chunk of remaining payload |
|
||||||
| Meta | [service.ResponseMetaHeader](#service.ResponseMetaHeader) | | ResponseMetaHeader contains meta information based on request processing by server (should be embedded into message) |
|
|
||||||
|
|
||||||
|
|
||||||
<a name="object.HeadRequest"></a>
|
<a name="object.HeadRequest"></a>
|
||||||
|
@ -270,7 +263,6 @@ in distributed system.
|
||||||
| Field | Type | Label | Description |
|
| Field | Type | Label | Description |
|
||||||
| ----- | ---- | ----- | ----------- |
|
| ----- | ---- | ----- | ----------- |
|
||||||
| Object | [Object](#object.Object) | | Object without payload |
|
| Object | [Object](#object.Object) | | Object without payload |
|
||||||
| Meta | [service.ResponseMetaHeader](#service.ResponseMetaHeader) | | ResponseMetaHeader contains meta information based on request processing by server (should be embedded into message) |
|
|
||||||
|
|
||||||
|
|
||||||
<a name="object.PutRequest"></a>
|
<a name="object.PutRequest"></a>
|
||||||
|
@ -308,7 +300,6 @@ in distributed system.
|
||||||
| Field | Type | Label | Description |
|
| Field | Type | Label | Description |
|
||||||
| ----- | ---- | ----- | ----------- |
|
| ----- | ---- | ----- | ----------- |
|
||||||
| Address | [refs.Address](#refs.Address) | | Address of object (container id + object id) |
|
| Address | [refs.Address](#refs.Address) | | Address of object (container id + object id) |
|
||||||
| Meta | [service.ResponseMetaHeader](#service.ResponseMetaHeader) | | ResponseMetaHeader contains meta information based on request processing by server (should be embedded into message) |
|
|
||||||
|
|
||||||
|
|
||||||
<a name="object.Range"></a>
|
<a name="object.Range"></a>
|
||||||
|
@ -371,7 +362,6 @@ in distributed system.
|
||||||
| Field | Type | Label | Description |
|
| Field | Type | Label | Description |
|
||||||
| ----- | ---- | ----- | ----------- |
|
| ----- | ---- | ----- | ----------- |
|
||||||
| Addresses | [refs.Address](#refs.Address) | repeated | Addresses of found objects |
|
| Addresses | [refs.Address](#refs.Address) | repeated | Addresses of found objects |
|
||||||
| Meta | [service.ResponseMetaHeader](#service.ResponseMetaHeader) | | ResponseMetaHeader contains meta information based on request processing by server (should be embedded into message) |
|
|
||||||
|
|
||||||
<!-- end messages -->
|
<!-- end messages -->
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,6 @@
|
||||||
- [RequestExtendedHeader](#service.RequestExtendedHeader)
|
- [RequestExtendedHeader](#service.RequestExtendedHeader)
|
||||||
- [RequestExtendedHeader.KV](#service.RequestExtendedHeader.KV)
|
- [RequestExtendedHeader.KV](#service.RequestExtendedHeader.KV)
|
||||||
- [RequestMetaHeader](#service.RequestMetaHeader)
|
- [RequestMetaHeader](#service.RequestMetaHeader)
|
||||||
- [ResponseMetaHeader](#service.ResponseMetaHeader)
|
|
||||||
|
|
||||||
|
|
||||||
- [service/verify.proto](#service/verify.proto)
|
- [service/verify.proto](#service/verify.proto)
|
||||||
|
@ -74,19 +73,6 @@ RequestMetaHeader contains information about request meta headers
|
||||||
| Version | [uint32](#uint32) | | Version defines protocol version TODO: not used for now, should be implemented in future |
|
| Version | [uint32](#uint32) | | Version defines protocol version TODO: not used for now, should be implemented in future |
|
||||||
| ExtendedHeader | [RequestExtendedHeader](#service.RequestExtendedHeader) | | ExtendedHeader carries extended headers of the request |
|
| ExtendedHeader | [RequestExtendedHeader](#service.RequestExtendedHeader) | | ExtendedHeader carries extended headers of the request |
|
||||||
|
|
||||||
|
|
||||||
<a name="service.ResponseMetaHeader"></a>
|
|
||||||
|
|
||||||
### Message ResponseMetaHeader
|
|
||||||
ResponseMetaHeader contains meta information based on request processing by server
|
|
||||||
(should be embedded into message)
|
|
||||||
|
|
||||||
|
|
||||||
| Field | Type | Label | Description |
|
|
||||||
| ----- | ---- | ----- | ----------- |
|
|
||||||
| Epoch | [uint64](#uint64) | | Current NeoFS epoch on server |
|
|
||||||
| Version | [uint32](#uint32) | | Version defines protocol version TODO: not used for now, should be implemented in future |
|
|
||||||
|
|
||||||
<!-- end messages -->
|
<!-- end messages -->
|
||||||
|
|
||||||
<!-- end enums -->
|
<!-- end enums -->
|
||||||
|
|
|
@ -17,16 +17,6 @@ message RequestMetaHeader {
|
||||||
RequestExtendedHeader ExtendedHeader = 5;
|
RequestExtendedHeader ExtendedHeader = 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ResponseMetaHeader contains meta information based on request processing by server
|
|
||||||
// (should be embedded into message)
|
|
||||||
message ResponseMetaHeader {
|
|
||||||
// Current NeoFS epoch on server
|
|
||||||
uint64 Epoch = 1;
|
|
||||||
// Version defines protocol version
|
|
||||||
// TODO: not used for now, should be implemented in future
|
|
||||||
uint32 Version = 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
// RequestExtendedHeader contains extended headers of request
|
// RequestExtendedHeader contains extended headers of request
|
||||||
message RequestExtendedHeader {
|
message RequestExtendedHeader {
|
||||||
// KV contains string key-value pair
|
// KV contains string key-value pair
|
||||||
|
|
Loading…
Reference in a new issue