forked from TrueCloudLab/frostfs-api
Add ResponseMetaHeader to all Object service response messages
This commit is contained in:
parent
f3595a85c5
commit
afd6a5f69e
1 changed files with 17 additions and 1 deletions
|
@ -73,6 +73,9 @@ 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 [(gogoproto.embed) = true, (gogoproto.nullable) = false];
|
||||||
}
|
}
|
||||||
|
|
||||||
message PutRequest {
|
message PutRequest {
|
||||||
|
@ -99,6 +102,8 @@ message PutRequest {
|
||||||
message PutResponse {
|
message PutResponse {
|
||||||
// Address of object (container id + object id)
|
// Address of object (container id + object id)
|
||||||
refs.Address Address = 1 [(gogoproto.nullable) = false];
|
refs.Address Address = 1 [(gogoproto.nullable) = false];
|
||||||
|
// ResponseMetaHeader contains meta information based on request processing by server (should be embedded into message)
|
||||||
|
service.ResponseMetaHeader Meta = 99 [(gogoproto.embed) = true, (gogoproto.nullable) = false];
|
||||||
}
|
}
|
||||||
message DeleteRequest {
|
message DeleteRequest {
|
||||||
// Address of object (container id + object id)
|
// Address of object (container id + object id)
|
||||||
|
@ -115,7 +120,10 @@ 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 [(gogoproto.embed) = true, (gogoproto.nullable) = false];
|
||||||
|
}
|
||||||
|
|
||||||
message HeadRequest {
|
message HeadRequest {
|
||||||
// Address of object (container id + object id)
|
// Address of object (container id + object id)
|
||||||
|
@ -132,6 +140,8 @@ 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 [(gogoproto.embed) = true, (gogoproto.nullable) = false];
|
||||||
}
|
}
|
||||||
|
|
||||||
message SearchRequest {
|
message SearchRequest {
|
||||||
|
@ -150,6 +160,8 @@ message SearchRequest {
|
||||||
message SearchResponse {
|
message SearchResponse {
|
||||||
// Addresses of found objects
|
// Addresses of found objects
|
||||||
repeated refs.Address Addresses = 1 [(gogoproto.nullable) = false];
|
repeated refs.Address Addresses = 1 [(gogoproto.nullable) = false];
|
||||||
|
// ResponseMetaHeader contains meta information based on request processing by server (should be embedded into message)
|
||||||
|
service.ResponseMetaHeader Meta = 99 [(gogoproto.embed) = true, (gogoproto.nullable) = false];
|
||||||
}
|
}
|
||||||
|
|
||||||
message GetRangeRequest {
|
message GetRangeRequest {
|
||||||
|
@ -166,6 +178,8 @@ 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 [(gogoproto.embed) = true, (gogoproto.nullable) = false];
|
||||||
}
|
}
|
||||||
|
|
||||||
message GetRangeHashRequest {
|
message GetRangeHashRequest {
|
||||||
|
@ -184,5 +198,7 @@ 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 [(gogoproto.customtype) = "Hash", (gogoproto.nullable) = false];
|
repeated bytes Hashes = 1 [(gogoproto.customtype) = "Hash", (gogoproto.nullable) = false];
|
||||||
|
// ResponseMetaHeader contains meta information based on request processing by server (should be embedded into message)
|
||||||
|
service.ResponseMetaHeader Meta = 99 [(gogoproto.embed) = true, (gogoproto.nullable) = false];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue