2019-11-18 13:34:06 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
package bootstrap;
|
|
|
|
option go_package = "github.com/nspcc-dev/neofs-proto/bootstrap";
|
|
|
|
|
|
|
|
import "bootstrap/types.proto";
|
|
|
|
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
|
|
|
|
|
|
|
|
option (gogoproto.stable_marshaler_all) = true;
|
|
|
|
|
2019-11-20 16:21:45 +00:00
|
|
|
// 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 {
|
2019-11-20 16:21:45 +00:00
|
|
|
// 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 {
|
2019-11-20 16:21:45 +00:00
|
|
|
// Type is NodeType, can be InnerRingNode (type=1) or StorageNode (type=2)
|
2019-11-18 13:34:06 +00:00
|
|
|
int32 type = 1 [(gogoproto.customname) = "Type" , (gogoproto.nullable) = false, (gogoproto.customtype) = "NodeType"];
|
2019-11-20 16:21:45 +00:00
|
|
|
// Info contains information about node
|
2019-11-18 13:34:06 +00:00
|
|
|
bootstrap.NodeInfo info = 2 [(gogoproto.nullable) = false];
|
2019-11-20 16:21:45 +00:00
|
|
|
// TTL must be larger than zero, it decreased in every neofs-node
|
2019-11-18 13:34:06 +00:00
|
|
|
uint32 TTL = 3;
|
|
|
|
}
|