forked from TrueCloudLab/frostfs-api
[#184] netmap: Sync style of the comments
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
c11991aff1
commit
fbbbfccb8d
1 changed files with 16 additions and 16 deletions
|
@ -129,7 +129,7 @@ message PlacementPolicy {
|
||||||
|
|
||||||
// NeoFS node description
|
// NeoFS node description
|
||||||
message NodeInfo {
|
message NodeInfo {
|
||||||
// Public key of the NeoFS node in a binary format.
|
// Public key of the NeoFS node in a binary format
|
||||||
bytes public_key = 1 [json_name = "publicKey"];
|
bytes public_key = 1 [json_name = "publicKey"];
|
||||||
|
|
||||||
// Ways to connect to a node
|
// Ways to connect to a node
|
||||||
|
@ -202,10 +202,10 @@ message NodeInfo {
|
||||||
// For detailed description of each well-known attribute please see the
|
// For detailed description of each well-known attribute please see the
|
||||||
// corresponding section in NeoFS Technical specification.
|
// corresponding section in NeoFS Technical specification.
|
||||||
message Attribute {
|
message Attribute {
|
||||||
// Key of the node attribute.
|
// Key of the node attribute
|
||||||
string key = 1 [json_name = "key"];
|
string key = 1 [json_name = "key"];
|
||||||
|
|
||||||
// Value of the node attribute.
|
// Value of the node attribute
|
||||||
string value = 2 [json_name = "value"];
|
string value = 2 [json_name = "value"];
|
||||||
|
|
||||||
// Parent keys, if any. For example for `City` it could be `Region` and
|
// Parent keys, if any. For example for `City` it could be `Region` and
|
||||||
|
@ -220,45 +220,45 @@ message NodeInfo {
|
||||||
|
|
||||||
// Represents the enumeration of various states of the NeoFS node.
|
// Represents the enumeration of various states of the NeoFS node.
|
||||||
enum State {
|
enum State {
|
||||||
// Unknown state.
|
// Unknown state
|
||||||
UNSPECIFIED = 0;
|
UNSPECIFIED = 0;
|
||||||
|
|
||||||
// Active state in the network.
|
// Active state in the network
|
||||||
ONLINE = 1;
|
ONLINE = 1;
|
||||||
|
|
||||||
// Network unavailable state.
|
// Network unavailable state
|
||||||
OFFLINE = 2;
|
OFFLINE = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Carries state of the NeoFS node.
|
// Carries state of the NeoFS node
|
||||||
State state = 4 [json_name = "state"];
|
State state = 4 [json_name = "state"];
|
||||||
}
|
}
|
||||||
|
|
||||||
// NeoFS network configuration
|
// NeoFS network configuration
|
||||||
message NetworkConfig {
|
message NetworkConfig {
|
||||||
// Single configuration parameter.
|
// Single configuration parameter
|
||||||
message Parameter {
|
message Parameter {
|
||||||
// Parameter key. UTF-8 encoded string.
|
// Parameter key. UTF-8 encoded string
|
||||||
bytes key = 1 [json_name = "key"];
|
bytes key = 1 [json_name = "key"];
|
||||||
|
|
||||||
// Parameter value.
|
// Parameter value
|
||||||
bytes value = 2 [json_name = "value"];
|
bytes value = 2 [json_name = "value"];
|
||||||
}
|
}
|
||||||
// List of parameter values.
|
// List of parameter values
|
||||||
repeated Parameter parameters = 1 [json_name = "parameters"];
|
repeated Parameter parameters = 1 [json_name = "parameters"];
|
||||||
}
|
}
|
||||||
|
|
||||||
// Information about NeoFS network
|
// Information about NeoFS network
|
||||||
message NetworkInfo {
|
message NetworkInfo {
|
||||||
// Number of the current epoch in the NeoFS network.
|
// Number of the current epoch in the NeoFS network
|
||||||
uint64 current_epoch = 1 [json_name = "currentEpoch"];
|
uint64 current_epoch = 1 [json_name = "currentEpoch"];
|
||||||
|
|
||||||
// Magic number of the sidechain of the NeoFS network.
|
// Magic number of the sidechain of the NeoFS network
|
||||||
uint64 magic_number = 2 [json_name = "magicNumber"];
|
uint64 magic_number = 2 [json_name = "magicNumber"];
|
||||||
|
|
||||||
// MillisecondsPerBlock network parameter of the sidechain of the NeoFS network.
|
// MillisecondsPerBlock network parameter of the sidechain of the NeoFS network
|
||||||
int64 ms_per_block = 3 [json_name = "msPerBlock"];
|
int64 ms_per_block = 3 [json_name = "msPerBlock"];
|
||||||
|
|
||||||
// NeoFS network configuration.
|
// NeoFS network configuration
|
||||||
NetworkConfig network_config = 4 [json_name = "networkConfig"];
|
NetworkConfig network_config = 4 [json_name = "networkConfig"];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue