提供手动控制节点上下线的接口

This commit is contained in:
刘祥超
2021-02-24 19:27:07 +08:00
parent b6b14976c6
commit d2dd3dab8c
2 changed files with 371 additions and 246 deletions

View File

@@ -111,6 +111,9 @@ service NodeService {
// 检查新版本
rpc checkNodeLatestVersion (CheckNodeLatestVersionRequest) returns (CheckNodeLatestVersionResponse);
// 设置节点上线状态
rpc updateNodeUp (UpdateNodeUpRequest) returns (RPCSuccess);
}
// 创建节点
@@ -414,4 +417,10 @@ message CheckNodeLatestVersionRequest {
message CheckNodeLatestVersionResponse {
bool hasNewVersion = 1;
string newVersion = 2;
}
// 设置节点上线状态
message UpdateNodeUpRequest {
int64 nodeId = 1;
bool isUp = 2;
}