2019-11-18 16:22:08 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
package service;
|
2020-01-30 13:32:50 +00:00
|
|
|
option go_package = "github.com/nspcc-dev/neofs-api/service";
|
2020-02-05 13:58:06 +00:00
|
|
|
option csharp_namespace = "NeoFS.API.Service";
|
2019-11-18 16:22:08 +00:00
|
|
|
|
|
|
|
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
|
|
|
|
|
|
|
|
option (gogoproto.stable_marshaler_all) = true;
|
|
|
|
|
2019-11-21 12:14:01 +00:00
|
|
|
// RequestMetaHeader contains information about request meta headers
|
|
|
|
// (should be embedded into message)
|
2019-11-18 16:22:08 +00:00
|
|
|
message RequestMetaHeader {
|
2019-11-21 12:14:01 +00:00
|
|
|
// TTL must be larger than zero, it decreased in every NeoFS Node
|
2019-11-21 12:13:07 +00:00
|
|
|
uint32 TTL = 1;
|
2019-11-21 12:14:01 +00:00
|
|
|
// Epoch for user can be empty, because node sets epoch to the actual value
|
2019-11-21 12:13:07 +00:00
|
|
|
uint64 Epoch = 2;
|
2019-11-21 12:14:01 +00:00
|
|
|
// Version defines protocol version
|
|
|
|
// TODO: not used for now, should be implemented in future
|
2019-11-21 12:13:07 +00:00
|
|
|
uint32 Version = 3;
|
2019-11-18 16:22:08 +00:00
|
|
|
}
|
2020-02-13 15:10: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;
|
|
|
|
}
|