mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-12-03 12:40:25 +08:00
增加节点停止、启动、安装测试等功能
This commit is contained in:
@@ -57,6 +57,12 @@ service NodeService {
|
||||
// 安装节点
|
||||
rpc installNode (InstallNodeRequest) returns (InstallNodeResponse);
|
||||
|
||||
// 启动节点
|
||||
rpc startNode (StartNodeRequest) returns (StartNodeResponse);
|
||||
|
||||
// 停止节点
|
||||
rpc stopNode (StopNodeRequest) returns (StopNodeResponse);
|
||||
|
||||
// 更改节点连接的API节点信息
|
||||
rpc updateNodeConnectedAPINodes (UpdateNodeConnectedAPINodesRequest) returns (RPCUpdateSuccess);
|
||||
|
||||
@@ -217,6 +223,26 @@ message InstallNodeResponse {
|
||||
|
||||
}
|
||||
|
||||
// 启动节点
|
||||
message StartNodeRequest {
|
||||
int64 nodeId = 1;
|
||||
}
|
||||
|
||||
message StartNodeResponse {
|
||||
bool isOk = 1;
|
||||
string error = 2;
|
||||
}
|
||||
|
||||
// 停止节点
|
||||
message StopNodeRequest {
|
||||
int64 nodeId = 1;
|
||||
}
|
||||
|
||||
message StopNodeResponse {
|
||||
bool isOk = 1;
|
||||
string error = 2;
|
||||
}
|
||||
|
||||
// 更改节点连接的API节点信息
|
||||
message UpdateNodeConnectedAPINodesRequest {
|
||||
repeated int64 apiNodeIds = 1;
|
||||
|
||||
Reference in New Issue
Block a user