可以修改服务的DNS设置

This commit is contained in:
刘祥超
2020-11-14 11:05:49 +08:00
parent 73164f7539
commit b9f8915d48
4 changed files with 511 additions and 230 deletions

View File

@@ -90,7 +90,7 @@ service NodeService {
// 计算某个节点分组内的节点数量
rpc countAllEnabledNodesWithGroupId (CountAllEnabledNodesWithGroupIdRequest) returns (RPCCountResponse);
// 取得某个集群下的所有节点
// 取得某个集群下的所有节点DNS信息
rpc findAllEnabledNodesDNSWithClusterId (FindAllEnabledNodesDNSWithClusterIdRequest) returns (FindAllEnabledNodesDNSWithClusterIdResponse);
// 查找单个节点的域名解析信息

View File

@@ -87,6 +87,9 @@ service ServerService {
// 通知更新
rpc notifyServersChange (NotifyServersChangeRequest) returns (NotifyServersChangeResponse);
// 取得某个集群下的所有服务相关的DNS
rpc findAllEnabledServersDNSWithClusterId (FindAllEnabledServersDNSWithClusterIdRequest) returns (FindAllEnabledServersDNSWithClusterIdResponse);
}
// 创建服务
@@ -297,4 +300,19 @@ message NotifyServersChangeRequest {
message NotifyServersChangeResponse {
}
// 取得某个集群下的所有服务相关的DNS
message FindAllEnabledServersDNSWithClusterIdRequest {
int64 clusterId = 1;
}
message FindAllEnabledServersDNSWithClusterIdResponse {
repeated ServerDNSInfo servers = 1;
}
message ServerDNSInfo {
int64 id = 1;
string name = 2;
string dnsName = 3;
}