智能DNS支持应答模式配置

This commit is contained in:
GoEdgeLab
2022-09-23 19:02:21 +08:00
parent 12e8c639d7
commit ab22f7e0e0
5 changed files with 4030 additions and 3658 deletions

View File

@@ -15,4 +15,5 @@ message NSCluster {
repeated string hosts = 8;
bool autoRemoteStart = 9;
string timeZone = 10;
bytes answerJSON = 11;
}

View File

@@ -73,6 +73,12 @@ service NSClusterService {
// 查找用户可以使用的主机地址
rpc findAvailableNSHostsForUser(FindAvailableNSHostsForUserRequest) returns (FindAvailableNSHostsForUserResponse);
// 查找应答模式
rpc findNSClusterAnswerConfig(FindNSClusterAnswerConfigRequest) returns (FindNSClusterAnswerConfigResponse);
// 设置应答模式
rpc updateNSClusterAnswerConfig(UpdateNSClusterAnswerConfigRequest) returns (RPCSuccess);
}
// 创建集群
@@ -244,4 +250,19 @@ message FindAvailableNSHostsForUserRequest {
message FindAvailableNSHostsForUserResponse {
repeated string hosts = 1;
}
// 查找应答模式
message FindNSClusterAnswerConfigRequest {
int64 nsClusterId = 1;
}
message FindNSClusterAnswerConfigResponse {
bytes answerJSON = 1;
}
// 设置应答模式
message UpdateNSClusterAnswerConfigRequest {
int64 nsClusterId = 1;
bytes answerJSON = 2;
}