[#1059] control: Add SetShardMode
rpc to proto files
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
90f05d4448
commit
41dd385b7b
1 changed files with 34 additions and 0 deletions
|
@ -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;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue