源站可以设置名称、描述、是否启用

This commit is contained in:
GoEdgeLab
2020-11-30 20:01:27 +08:00
parent dedb8ea544
commit 8f5b5bd338
7 changed files with 617 additions and 471 deletions

View File

@@ -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;

View File

@@ -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;
}
// 查找单个源站信息