2020-01-30 11:41:24 +00:00
|
|
|
syntax = "proto3";
|
2020-08-05 23:25:50 +00:00
|
|
|
|
2020-01-30 11:41:24 +00:00
|
|
|
package service;
|
2020-08-05 23:25:50 +00:00
|
|
|
|
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
|
|
|
|
2020-08-11 14:49:31 +00:00
|
|
|
import "acl/types.proto";
|
|
|
|
import "service/verify.proto";
|
|
|
|
|
|
|
|
message XHeader {
|
|
|
|
// Key of the X-Header.
|
|
|
|
string key = 1;
|
|
|
|
// Value of the X-Header.
|
|
|
|
string value = 2;
|
|
|
|
}
|
|
|
|
|
2020-08-11 10:54:58 +00:00
|
|
|
// Represents API version used by node.
|
|
|
|
message Version {
|
|
|
|
// Major API version.
|
|
|
|
uint32 major = 1;
|
|
|
|
// Minor API version.
|
|
|
|
uint32 minor = 2;
|
|
|
|
}
|
|
|
|
|
2020-08-11 14:49:31 +00:00
|
|
|
// Information about the request
|
2020-01-30 11:41:24 +00:00
|
|
|
message RequestMetaHeader {
|
2020-08-11 14:49:31 +00:00
|
|
|
// Client API version.
|
|
|
|
Version version = 1;
|
|
|
|
// Client local epoch number. Set to 0 if unknown.
|
|
|
|
uint64 epoch = 2;
|
|
|
|
// Maximum number of nodes in the request route.
|
|
|
|
uint32 ttl = 3;
|
|
|
|
// Request X-Headers.
|
|
|
|
repeated XHeader x_headers = 4;
|
2020-02-13 14:21:46 +00:00
|
|
|
|
2020-08-11 14:49:31 +00:00
|
|
|
// RequestMetaHeader of the origin request.
|
|
|
|
RequestMetaHeader origin = 98;
|
|
|
|
}
|
2020-06-18 08:49:10 +00:00
|
|
|
|
2020-08-11 14:49:31 +00:00
|
|
|
// Information about the response
|
|
|
|
message ResponseMetaHeader {
|
|
|
|
// Server API version.
|
|
|
|
Version version = 1;
|
|
|
|
// Server local epoch number.
|
|
|
|
uint64 epoch = 2;
|
|
|
|
// Maximum number of nodes in the response route.
|
|
|
|
uint32 ttl = 3;
|
|
|
|
// Response X-Headers.
|
|
|
|
repeated XHeader x_headers = 4;
|
2020-06-18 08:49:10 +00:00
|
|
|
|
2020-08-11 14:49:31 +00:00
|
|
|
// Carries response meta header of the origin response.
|
|
|
|
ResponseMetaHeader origin = 98;
|
2020-06-18 08:49:10 +00:00
|
|
|
}
|