forked from TrueCloudLab/frostfs-api
818ec7f0dc
NeoFS Object are now Content-addressed. It means the Object's address depends on it's content. ObjectID is now calculated as hash of Header, which contains a hash of payload. If either if Object's payload of Headers change, the ID will also change. Signed-off-by: Stanislav Bogatyrev <stanislav@nspcc.ru>
31 lines
686 B
Protocol Buffer
31 lines
686 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package service;
|
|
|
|
option go_package = "github.com/nspcc-dev/neofs-api-go/service";
|
|
option csharp_namespace = "NeoFS.API.Service";
|
|
|
|
// Represents API version used by node.
|
|
message Version {
|
|
// Major API version.
|
|
uint32 major = 1;
|
|
// Minor API version.
|
|
uint32 minor = 2;
|
|
}
|
|
|
|
// RequestMetaHeader contains information about request meta headers.
|
|
message RequestMetaHeader {
|
|
// Carries maximum number of nodes in the request route.
|
|
uint32 ttl = 1;
|
|
|
|
message XHeader {
|
|
// Carries key to the X-Header.
|
|
string key = 1;
|
|
|
|
// Carries value of the X-Header.
|
|
string value = 2;
|
|
}
|
|
|
|
// Carries request X-Headers.
|
|
repeated XHeader x_headers = 2;
|
|
}
|