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

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

@@ -15,4 +15,6 @@ message HTTPDNSCluster {
bytes tlsPolicyJSON = 9;
int64 createdAt = 10;
int64 updatedAt = 11;
bool autoRemoteStart = 12;
bool accessLogIsOn = 13;
}

View File

@@ -27,6 +27,8 @@ message CreateHTTPDNSClusterRequest {
bytes tlsPolicyJSON = 6;
bool isOn = 7;
bool isDefault = 8;
bool autoRemoteStart = 9;
bool accessLogIsOn = 10;
}
message CreateHTTPDNSClusterResponse {
@@ -43,6 +45,8 @@ message UpdateHTTPDNSClusterRequest {
bytes tlsPolicyJSON = 7;
bool isOn = 8;
bool isDefault = 9;
bool autoRemoteStart = 10;
bool accessLogIsOn = 11;
}
message DeleteHTTPDNSClusterRequest {

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