[#1059] control: Add SetShardMode rpc to proto files

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
Pavel Karpy 2021-12-27 18:28:34 +03:00 committed by Alex Vanin
parent 90f05d4448
commit 41dd385b7b

View file

@ -22,6 +22,9 @@ service ControlService {
// Returns list that contains information about all shards of a node. // Returns list that contains information about all shards of a node.
rpc ListShards (ListShardsRequest) returns (ListShardsResponse); rpc ListShards (ListShardsRequest) returns (ListShardsResponse);
// Sets mode of the shard.
rpc SetShardMode (SetShardModeRequest) returns (SetShardModeResponse);
} }
// Health check request. // Health check request.
@ -167,3 +170,34 @@ message ListShardsResponse {
// Body signature. // Body signature.
Signature signature = 2; Signature signature = 2;
} }
// Request to set mode of the shard.
message SetShardModeRequest {
// Request body structure.
message Body {
// ID of the shard.
bytes shard_ID = 1;
// Mode that requested to be set.
ShardMode mode = 2;
}
// Body of set shard mode request message.
Body body = 1;
// Body signature.
Signature signature = 2;
}
// SetShardMode response.
message SetShardModeResponse {
// Response body structure.
message Body {
}
// Body of set shard mode response message.
Body body = 1;
// Body signature.
Signature signature = 2;
}