From e0f31302b57f60061e8e6f1d97e368e3293f9e12 Mon Sep 17 00:00:00 2001 From: Evgeniy Kulikov Date: Wed, 15 Apr 2020 12:24:21 +0300 Subject: [PATCH] add bootstrap.Request.State and enum --- bootstrap/service.proto | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/bootstrap/service.proto b/bootstrap/service.proto index e37c878..6918bef 100644 --- a/bootstrap/service.proto +++ b/bootstrap/service.proto @@ -19,10 +19,22 @@ service Bootstrap { } message Request { + // Node state + enum State { + // used by default + Unknown = 0; + // used to inform that node online + Online = 1; + // used to inform that node offline + Offline = 2; + } + // Type is NodeType, can be InnerRingNode (type=1) or StorageNode (type=2) int32 type = 1 [(gogoproto.customname) = "Type" , (gogoproto.nullable) = false, (gogoproto.customtype) = "NodeType"]; // Info contains information about node bootstrap.NodeInfo info = 2 [(gogoproto.nullable) = false]; + // State contains node status + State state = 3; // 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)