frostfs-api-go/bootstrap/service.proto

31 lines
1.5 KiB
Protocol Buffer
Raw Normal View History

2019-11-18 13:34:06 +00:00
syntax = "proto3";
package bootstrap;
option go_package = "github.com/nspcc-dev/neofs-api/bootstrap";
2020-02-05 13:58:06 +00:00
option csharp_namespace = "NeoFS.API.Bootstrap";
2019-11-18 13:34:06 +00:00
2019-11-18 16:22:08 +00:00
import "service/meta.proto";
import "service/verify.proto";
2019-11-18 13:34:06 +00:00
import "bootstrap/types.proto";
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
option (gogoproto.stable_marshaler_all) = true;
// Bootstrap service allows neofs-node to connect to the network. Node should
// perform at least one bootstrap request in the epoch to stay in the network
// for the next epoch.
2019-11-18 13:34:06 +00:00
service Bootstrap {
// Process is method that allows to register node in the network and receive actual netmap
2019-11-18 13:34:06 +00:00
rpc Process(Request) returns (bootstrap.SpreadMap);
}
message Request {
// Type is NodeType, can be InnerRingNode (type=1) or StorageNode (type=2)
2019-11-18 16:22:08 +00:00
int32 type = 1 [(gogoproto.customname) = "Type" , (gogoproto.nullable) = false, (gogoproto.customtype) = "NodeType"];
// Info contains information about node
2019-11-18 16:22:08 +00:00
bootstrap.NodeInfo info = 2 [(gogoproto.nullable) = false];
// RequestMetaHeader contains information about request meta headers (should be embedded into message)
service.RequestMetaHeader Meta = 98 [(gogoproto.embed) = true, (gogoproto.nullable) = false];
// RequestVerificationHeader is a set of signatures of every NeoFS Node that processed request (should be embedded into message)
service.RequestVerificationHeader Verify = 99 [(gogoproto.embed) = true, (gogoproto.nullable) = false];
2019-11-18 13:34:06 +00:00
}