节点自动升级功能之前的版本

This commit is contained in:
robin
2026-03-02 23:42:55 +08:00
parent 2a76d1773d
commit 853897a6f8
29 changed files with 1063 additions and 81 deletions

View File

@@ -16,6 +16,12 @@ service HTTPDNSNodeService {
rpc updateHTTPDNSNodeStatus (UpdateHTTPDNSNodeStatusRequest) returns (RPCSuccess);
// 修改HTTPDNS节点登录信息
rpc updateHTTPDNSNodeLogin (UpdateHTTPDNSNodeLoginRequest) returns (RPCSuccess);
// 检查HTTPDNS节点新版本
rpc checkHTTPDNSNodeLatestVersion (CheckHTTPDNSNodeLatestVersionRequest) returns (CheckHTTPDNSNodeLatestVersionResponse);
// 下载最新HTTPDNS节点安装文件
rpc downloadHTTPDNSNodeInstallationFile (DownloadHTTPDNSNodeInstallationFileRequest) returns (DownloadHTTPDNSNodeInstallationFileResponse);
}
message CreateHTTPDNSNodeRequest {
@@ -70,3 +76,30 @@ message UpdateHTTPDNSNodeLoginRequest {
int64 nodeId = 1;
NodeLogin nodeLogin = 2;
}
// 检查HTTPDNS节点新版本
message CheckHTTPDNSNodeLatestVersionRequest {
string os = 1;
string arch = 2;
string currentVersion = 3;
}
message CheckHTTPDNSNodeLatestVersionResponse {
bool hasNewVersion = 1;
string newVersion = 2;
}
// 下载最新HTTPDNS节点安装文件
message DownloadHTTPDNSNodeInstallationFileRequest {
string os = 1;
string arch = 2;
int64 chunkOffset = 3;
}
message DownloadHTTPDNSNodeInstallationFileResponse {
bytes chunkData = 1;
string sum = 2;
int64 offset = 3;
string version = 4;
string filename = 5;
}