mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-30 09:10:26 +08:00
源站可以设置名称、描述、是否启用
This commit is contained in:
@@ -79,6 +79,9 @@ service NodeService {
|
||||
// 列出所有未安装的节点
|
||||
rpc findAllNotInstalledNodesWithClusterId (FindAllNotInstalledNodesWithClusterIdRequest) returns (FindAllNotInstalledNodesWithClusterIdResponse);
|
||||
|
||||
// 计算需要升级的节点数量
|
||||
rpc countAllUpgradeNodesWithClusterId (CountAllUpgradeNodesWithClusterIdRequest) returns (RPCCountResponse);
|
||||
|
||||
// 列出所有需要升级的节点
|
||||
rpc findAllUpgradeNodesWithClusterId (FindAllUpgradeNodesWithClusterIdRequest) returns (FindAllUpgradeNodesWithClusterIdResponse);
|
||||
|
||||
@@ -296,6 +299,11 @@ message FindAllNotInstalledNodesWithClusterIdResponse {
|
||||
repeated Node nodes = 1;
|
||||
}
|
||||
|
||||
// 计算需要升级的节点数量
|
||||
message CountAllUpgradeNodesWithClusterIdRequest {
|
||||
int64 clusterId = 1;
|
||||
}
|
||||
|
||||
// 列出所有需要升级的节点
|
||||
message FindAllUpgradeNodesWithClusterIdRequest {
|
||||
int64 clusterId = 1;
|
||||
|
||||
@@ -3,7 +3,7 @@ option go_package = "./pb";
|
||||
|
||||
package pb;
|
||||
|
||||
import "model_origin_server.proto";
|
||||
import "model_origin.proto";
|
||||
import "model_network_address.proto";
|
||||
import "rpc_messages.proto";
|
||||
|
||||
@@ -27,6 +27,7 @@ message CreateOriginRequest {
|
||||
NetworkAddress addr = 2;
|
||||
string description = 3;
|
||||
int32 weight = 4;
|
||||
bool isOn = 5;
|
||||
}
|
||||
|
||||
message CreateOriginResponse {
|
||||
@@ -40,6 +41,7 @@ message UpdateOriginRequest {
|
||||
NetworkAddress addr = 3;
|
||||
string description = 4;
|
||||
int32 weight = 5;
|
||||
bool isOn = 6;
|
||||
}
|
||||
|
||||
// 查找单个源站信息
|
||||
|
||||
Reference in New Issue
Block a user