增加检查DNS节点新版本

This commit is contained in:
GoEdgeLab
2021-06-03 22:09:40 +08:00
parent 7eaeb5eb06
commit b63aca0afa
2 changed files with 321 additions and 101 deletions

View File

@@ -50,6 +50,9 @@ service NSNodeService {
// 获取当前节点信息
rpc findCurrentNSNodeConfig (FindCurrentNSNodeConfigRequest) returns (FindCurrentNSNodeConfigResponse);
// 检查新版本
rpc checkNSNodeLatestVersion (CheckNSNodeLatestVersionRequest) returns (CheckNSNodeLatestVersionResponse);
}
// 根据集群查找所有节点
@@ -166,4 +169,16 @@ message FindCurrentNSNodeConfigRequest {
message FindCurrentNSNodeConfigResponse {
bytes nsNodeJSON = 1;
}
// 检查新版本
message CheckNSNodeLatestVersionRequest {
string os = 1;
string arch = 2;
string currentVersion = 3;
}
message CheckNSNodeLatestVersionResponse {
bool hasNewVersion = 1;
string newVersion = 2;
}