2020-01-30 11:41:24 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
package service;
|
2020-03-31 06:58:22 +00:00
|
|
|
option go_package = "github.com/nspcc-dev/neofs-api-go/service";
|
2020-02-05 12:14:39 +00:00
|
|
|
option csharp_namespace = "NeoFS.API.Service";
|
2020-01-30 11:41:24 +00:00
|
|
|
|
|
|
|
// RequestMetaHeader contains information about request meta headers
|
|
|
|
// (should be embedded into message)
|
|
|
|
message RequestMetaHeader {
|
|
|
|
// TTL must be larger than zero, it decreased in every NeoFS Node
|
|
|
|
uint32 TTL = 1;
|
|
|
|
// Epoch for user can be empty, because node sets epoch to the actual value
|
|
|
|
uint64 Epoch = 2;
|
|
|
|
// Version defines protocol version
|
|
|
|
// TODO: not used for now, should be implemented in future
|
|
|
|
uint32 Version = 3;
|
2020-04-23 10:34:06 +00:00
|
|
|
// Raw determines whether the request is raw or not
|
|
|
|
bool Raw = 4;
|
2020-06-18 08:49:10 +00:00
|
|
|
// ExtendedHeader carries extended headers of the request
|
2020-08-05 22:34:11 +00:00
|
|
|
RequestExtendedHeader ExtendedHeader = 5;
|
2020-01-30 11:41:24 +00:00
|
|
|
}
|
2020-02-13 14:21:46 +00:00
|
|
|
|
|
|
|
// 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;
|
|
|
|
}
|
2020-06-18 08:49:10 +00:00
|
|
|
|
|
|
|
// RequestExtendedHeader contains extended headers of request
|
|
|
|
message RequestExtendedHeader {
|
|
|
|
// KV contains string key-value pair
|
|
|
|
message KV {
|
|
|
|
// K carries extended header key
|
|
|
|
string K = 1;
|
|
|
|
|
|
|
|
// V carries extended header value
|
|
|
|
string V = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Headers carries list of key-value headers
|
2020-08-05 22:34:11 +00:00
|
|
|
repeated KV Headers = 1;
|
2020-06-18 08:49:10 +00:00
|
|
|
}
|