Compare commits

...
21 Commits
Author SHA1 Message Date
刘祥超 6a1a2640d3 Update rpc.json 2023-05-28 19:26:18 +08:00
刘祥超 be32bff7db 提供用户某日刷新/预热缓存数量查询API 2023-05-28 18:00:42 +08:00
刘祥超 afd9e3134d WAF增加“跳转”动作 2023-05-28 17:45:39 +08:00
刘祥超 a9dd5e3ba3 URL跳转精准匹配/匹配前缀支持URL查询参数 2023-05-27 21:00:34 +08:00
刘祥超 5caafcb99a 增加读取节点数配额接口 2023-05-27 15:30:05 +08:00
刘祥超 f34633f22a WAF国家/地区封禁、省份封禁增加例外URL、限制URL 2023-05-25 12:02:25 +08:00
刘祥超 2966240a5c 网站全局设置中增加“自动匹配证书”选项 2023-05-25 11:00:25 +08:00
刘祥超 05255c18d8 智能调度动作可以排序 2023-05-24 15:38:37 +08:00
刘祥超 a74a751a50 删除不需要的文件 2023-05-24 15:06:22 +08:00
刘祥超 c24fa291bd 改进流量相关的智能调度过期时间设置 2023-05-24 15:04:07 +08:00
刘祥超 e33f98f869 优化代码 2023-05-23 19:51:28 +08:00
刘祥超 e3ada6da81 实现集群CC防护策略设置 2023-05-23 19:16:09 +08:00
刘祥超 47c0ade078 实现集群自定义页面 2023-05-22 17:30:08 +08:00
刘祥超 2af8e6c7f8 HTTP Header中支持设置非标Header 2023-05-19 19:52:22 +08:00
刘祥超 e909d4c59a 优化代码 2023-05-19 16:44:02 +08:00
刘祥超 ee744d6c70 HTTP Header - CORS跨域设置增加多个选项 2023-05-19 16:33:13 +08:00
刘祥超 dbea336fee 增加复制节点动作API 2023-05-19 11:12:09 +08:00
刘祥超 5961d955d7 实现基础的智能调度 2023-05-17 18:42:35 +08:00
刘祥超 529a98e694 域名解析功能实现健康检查 2023-05-03 17:09:36 +08:00
刘祥超 48aeffba7e 防盗链增加”同时检查Origin选项“ 2023-05-02 17:05:56 +08:00
刘祥超 a7ac768709 优化编译脚本 2023-04-25 10:26:34 +08:00
42 changed files with 7692 additions and 1789 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ if [ "${RESULT}" != "0" ]; then
exit exit
fi fi
RESULT=`protoc --go_out=plugins=grpc:../pkg/rpc --proto_path=../pkg/rpc/protos ../pkg/rpc/protos/models/*.proto` protoc --go_out=plugins=grpc:../pkg/rpc --proto_path=../pkg/rpc/protos ../pkg/rpc/protos/models/*.proto
RESULT=$? RESULT=$?
if [ "${RESULT}" != "0" ]; then if [ "${RESULT}" != "0" ]; then
exit exit
+480 -7
View File
@@ -2349,6 +2349,17 @@
"node" "node"
], ],
"isDeprecated": false "isDeprecated": false
},
{
"name": "countHTTPCacheTaskKeysWithDay",
"requestMessageName": "CountHTTPCacheTaskKeysWithDayRequest",
"responseMessageName": "RPCCountResponse",
"code": "rpc countHTTPCacheTaskKeysWithDay(CountHTTPCacheTaskKeysWithDayRequest) returns (RPCCountResponse);",
"doc": "计算当天已经清理的Key数量",
"roles": [
"user"
],
"isDeprecated": false
} }
], ],
"filename": "service_http_cache_task_key.proto", "filename": "service_http_cache_task_key.proto",
@@ -2875,6 +2886,18 @@
], ],
"isDeprecated": false "isDeprecated": false
}, },
{
"name": "updateHTTPHeaderPolicyNonStandardHeaders",
"requestMessageName": "UpdateHTTPHeaderPolicyNonStandardHeadersRequest",
"responseMessageName": "RPCSuccess",
"code": "rpc updateHTTPHeaderPolicyNonStandardHeaders(UpdateHTTPHeaderPolicyNonStandardHeadersRequest) returns (RPCSuccess);",
"doc": "修改非标的Headers",
"roles": [
"admin",
"user"
],
"isDeprecated": false
},
{ {
"name": "updateHTTPHeaderPolicyCORS", "name": "updateHTTPHeaderPolicyCORS",
"requestMessageName": "UpdateHTTPHeaderPolicyCORSRequest", "requestMessageName": "UpdateHTTPHeaderPolicyCORSRequest",
@@ -5576,11 +5599,172 @@
"node" "node"
], ],
"isDeprecated": false "isDeprecated": false
},
{
"name": "findNodeHTTPCCPolicies",
"requestMessageName": "FindNodeHTTPCCPoliciesRequest",
"responseMessageName": "FindNodeHTTPCCPoliciesResponse",
"code": "rpc findNodeHTTPCCPolicies(FindNodeHTTPCCPoliciesRequest) returns (FindNodeHTTPCCPoliciesResponse);",
"doc": "查找节点的HTTP CC策略",
"roles": [
"node"
],
"isDeprecated": false
},
{
"name": "findNodeHTTPPagesPolicies",
"requestMessageName": "FindNodeHTTPPagesPoliciesRequest",
"responseMessageName": "FindNodeHTTPPagesPoliciesResponse",
"code": "rpc findNodeHTTPPagesPolicies(FindNodeHTTPPagesPoliciesRequest) returns (FindNodeHTTPPagesPoliciesResponse);",
"doc": "查找节点的自定义页面策略",
"roles": [
"node"
],
"isDeprecated": false
},
{
"name": "findNodeScheduleInfo",
"requestMessageName": "FindNodeScheduleInfoRequest",
"responseMessageName": "FindNodeScheduleInfoResponse",
"code": "rpc findNodeScheduleInfo(FindNodeScheduleInfoRequest) returns (FindNodeScheduleInfoResponse);",
"doc": "查找节点调度信息",
"roles": [
"admin"
],
"isDeprecated": false
},
{
"name": "updateNodeScheduleInfo",
"requestMessageName": "UpdateNodeScheduleInfoRequest",
"responseMessageName": "RPCSuccess",
"code": "rpc updateNodeScheduleInfo(UpdateNodeScheduleInfoRequest) returns (RPCSuccess);",
"doc": "修改节点调度信息",
"roles": [
"admin"
],
"isDeprecated": false
},
{
"name": "resetNodeActionStatus",
"requestMessageName": "ResetNodeActionStatusRequest",
"responseMessageName": "RPCSuccess",
"code": "rpc resetNodeActionStatus(ResetNodeActionStatusRequest) returns (RPCSuccess);",
"doc": "重置节点动作状态",
"roles": [
"admin"
],
"isDeprecated": false
},
{
"name": "findAllNodeScheduleInfoWithNodeClusterId",
"requestMessageName": "FindAllNodeScheduleInfoWithNodeClusterIdRequest",
"responseMessageName": "FindAllNodeScheduleInfoWithNodeClusterIdResponse",
"code": "rpc findAllNodeScheduleInfoWithNodeClusterId(FindAllNodeScheduleInfoWithNodeClusterIdRequest) returns (FindAllNodeScheduleInfoWithNodeClusterIdResponse);",
"doc": "查找集群的节点调度信息",
"roles": [
"admin"
],
"isDeprecated": false
},
{
"name": "copyNodeActionsToNodeGroup",
"requestMessageName": "CopyNodeActionsToNodeGroupRequest",
"responseMessageName": "RPCSuccess",
"code": "rpc copyNodeActionsToNodeGroup(CopyNodeActionsToNodeGroupRequest) returns (RPCSuccess);",
"doc": "复制动作设置到分组",
"roles": [
"admin"
],
"isDeprecated": false
},
{
"name": "copyNodeActionsToNodeCluster",
"requestMessageName": "CopyNodeActionsToNodeClusterRequest",
"responseMessageName": "RPCSuccess",
"code": "rpc copyNodeActionsToNodeCluster(CopyNodeActionsToNodeClusterRequest) returns (RPCSuccess);",
"doc": "复制动作设置到集群",
"roles": [
"admin"
],
"isDeprecated": false
} }
], ],
"filename": "service_node.proto", "filename": "service_node.proto",
"doc": "边缘节点管理服务" "doc": "边缘节点管理服务"
}, },
{
"name": "NodeActionService",
"methods": [
{
"name": "createNodeAction",
"requestMessageName": "CreateNodeActionRequest",
"responseMessageName": "CreateNodeActionResponse",
"code": "rpc createNodeAction(CreateNodeActionRequest) returns (CreateNodeActionResponse);",
"doc": "添加动作",
"roles": [
"admin"
],
"isDeprecated": false
},
{
"name": "deleteNodeAction",
"requestMessageName": "DeleteNodeActionRequest",
"responseMessageName": "RPCSuccess",
"code": "rpc deleteNodeAction(DeleteNodeActionRequest) returns (RPCSuccess);",
"doc": "删除动作",
"roles": [
"admin"
],
"isDeprecated": false
},
{
"name": "updateNodeAction",
"requestMessageName": "UpdateNodeActionRequest",
"responseMessageName": "RPCSuccess",
"code": "rpc updateNodeAction(UpdateNodeActionRequest) returns (RPCSuccess);",
"doc": "修改动作",
"roles": [
"admin"
],
"isDeprecated": false
},
{
"name": "findAllNodeActions",
"requestMessageName": "FindAllNodeActionsRequest",
"responseMessageName": "FindAllNodeActionsResponse",
"code": "rpc findAllNodeActions(FindAllNodeActionsRequest) returns (FindAllNodeActionsResponse);",
"doc": "列出某个节点的所有动作",
"roles": [
"admin"
],
"isDeprecated": false
},
{
"name": "findNodeAction",
"requestMessageName": "FindNodeActionRequest",
"responseMessageName": "FindNodeActionResponse",
"code": "rpc findNodeAction(FindNodeActionRequest) returns (FindNodeActionResponse);",
"doc": "查找单个节点动作",
"roles": [
"admin"
],
"isDeprecated": false
},
{
"name": "updateNodeActionOrders",
"requestMessageName": "UpdateNodeActionOrdersRequest",
"responseMessageName": "RPCSuccess",
"code": "rpc updateNodeActionOrders(UpdateNodeActionOrdersRequest) returns (RPCSuccess);",
"doc": "设置节点动作排序",
"roles": [
"admin"
],
"isDeprecated": false
}
],
"filename": "service_node_action.proto",
"doc": "节点动作服务"
},
{ {
"name": "NodeClusterService", "name": "NodeClusterService",
"methods": [ "methods": [
@@ -6014,6 +6198,28 @@
], ],
"isDeprecated": false "isDeprecated": false
}, },
{
"name": "findEnabledNodeClusterHTTPCCPolicy",
"requestMessageName": "FindEnabledNodeClusterHTTPCCPolicyRequest",
"responseMessageName": "FindEnabledNodeClusterHTTPCCPolicyResponse",
"code": "rpc findEnabledNodeClusterHTTPCCPolicy(FindEnabledNodeClusterHTTPCCPolicyRequest) returns (FindEnabledNodeClusterHTTPCCPolicyResponse);",
"doc": "读取集群的HTTP CC策略",
"roles": [
"admin"
],
"isDeprecated": false
},
{
"name": "updateNodeClusterHTTPCCPolicy",
"requestMessageName": "UpdateNodeClusterHTTPCCPolicyRequest",
"responseMessageName": "RPCSuccess",
"code": "rpc updateNodeClusterHTTPCCPolicy(UpdateNodeClusterHTTPCCPolicyRequest) returns (RPCSuccess);",
"doc": "设置集群的HTTP CC策略",
"roles": [
"admin"
],
"isDeprecated": false
},
{ {
"name": "findNodeClusterDDoSProtection", "name": "findNodeClusterDDoSProtection",
"requestMessageName": "FindNodeClusterDDoSProtectionRequest", "requestMessageName": "FindNodeClusterDDoSProtectionRequest",
@@ -6057,6 +6263,28 @@
"admin" "admin"
], ],
"isDeprecated": false "isDeprecated": false
},
{
"name": "findNodeClusterHTTPPagesPolicy",
"requestMessageName": "FindNodeClusterHTTPPagesPolicyRequest",
"responseMessageName": "FindNodeClusterHTTPPagesPolicyResponse",
"code": "rpc findNodeClusterHTTPPagesPolicy(FindNodeClusterHTTPPagesPolicyRequest) returns (FindNodeClusterHTTPPagesPolicyResponse);",
"doc": "获取集群的自定义页面设置",
"roles": [
"admin"
],
"isDeprecated": false
},
{
"name": "updateNodeClusterHTTPPagesPolicy",
"requestMessageName": "UpdateNodeClusterHTTPPagesPolicyRequest",
"responseMessageName": "RPCSuccess",
"code": "rpc updateNodeClusterHTTPPagesPolicy(UpdateNodeClusterHTTPPagesPolicyRequest) returns (RPCSuccess);",
"doc": "修改集群的自定义页面设置",
"roles": [
"admin"
],
"isDeprecated": false
} }
], ],
"filename": "service_node_cluster.proto", "filename": "service_node_cluster.proto",
@@ -7709,6 +7937,30 @@
"user" "user"
], ],
"isDeprecated": false "isDeprecated": false
},
{
"name": "findNSDomainRecordsHealthCheck",
"requestMessageName": "FindNSDomainRecordsHealthCheckRequest",
"responseMessageName": "FindNSDomainRecordsHealthCheckResponse",
"code": "rpc findNSDomainRecordsHealthCheck(FindNSDomainRecordsHealthCheckRequest) returns (FindNSDomainRecordsHealthCheckResponse);",
"doc": "查询记录健康检查全局设置",
"roles": [
"admin",
"user"
],
"isDeprecated": false
},
{
"name": "updateNSDomainRecordsHealthCheck",
"requestMessageName": "UpdateNSDomainRecordsHealthCheckRequest",
"responseMessageName": "RPCSuccess",
"code": "rpc updateNSDomainRecordsHealthCheck(UpdateNSDomainRecordsHealthCheckRequest) returns (RPCSuccess);",
"doc": "修改记录健康检查全局设置",
"roles": [
"admin",
"user"
],
"isDeprecated": false
} }
], ],
"filename": "service_ns_domain.proto", "filename": "service_ns_domain.proto",
@@ -8509,6 +8761,42 @@
"dns" "dns"
], ],
"isDeprecated": false "isDeprecated": false
},
{
"name": "findNSRecordHealthCheck",
"requestMessageName": "FindNSRecordHealthCheckRequest",
"responseMessageName": "FindNSRecordHealthCheckResponse",
"code": "rpc findNSRecordHealthCheck(FindNSRecordHealthCheckRequest) returns (FindNSRecordHealthCheckResponse);",
"doc": "查询记录健康检查设置",
"roles": [
"admin",
"user"
],
"isDeprecated": false
},
{
"name": "updateNSRecordHealthCheck",
"requestMessageName": "UpdateNSRecordHealthCheckRequest",
"responseMessageName": "RPCSuccess",
"code": "rpc updateNSRecordHealthCheck(UpdateNSRecordHealthCheckRequest) returns (RPCSuccess);",
"doc": "修改记录健康检查设置",
"roles": [
"admin",
"user"
],
"isDeprecated": false
},
{
"name": "updateNSRecordIsUp",
"requestMessageName": "UpdateNSRecordIsUpRequest",
"responseMessageName": "RPCSuccess",
"code": "rpc updateNSRecordIsUp(UpdateNSRecordIsUpRequest) returns (RPCSuccess);",
"doc": "手动修改记录在线状态",
"roles": [
"admin",
"user"
],
"isDeprecated": false
} }
], ],
"filename": "service_ns_record.proto", "filename": "service_ns_record.proto",
@@ -13643,6 +13931,16 @@
"code": "message ComposeUserGlobalBoardResponse {\n\tint64 totalUsers = 1;\n\tint64 countTodayUsers = 2;\n\tint64 countWeeklyUsers = 3;\n\tint64 countUserNodes = 4;\n\tint64 countOfflineUserNodes = 5;\n\tint64 countVerifyingUsers = 6;\n\n\trepeated DailyStat dailyStats = 30;\n\trepeated NodeValue cpuNodeValues = 31;\n\trepeated NodeValue memoryNodeValues = 32;\n\trepeated NodeValue loadNodeValues = 33;\n\trepeated TrafficStat topTrafficStats = 34;\n\n\n\tmessage DailyStat {\n\t\tstring day = 1;\n\t\tint64 count = 2;\n\t}\n\n\n\tmessage TrafficStat {\n\t\tint64 userId = 1;\n\t\tstring userName = 2;\n\t\tint64 countRequests = 3;\n\t\tint64 bytes = 4;\n\t}\n}", "code": "message ComposeUserGlobalBoardResponse {\n\tint64 totalUsers = 1;\n\tint64 countTodayUsers = 2;\n\tint64 countWeeklyUsers = 3;\n\tint64 countUserNodes = 4;\n\tint64 countOfflineUserNodes = 5;\n\tint64 countVerifyingUsers = 6;\n\n\trepeated DailyStat dailyStats = 30;\n\trepeated NodeValue cpuNodeValues = 31;\n\trepeated NodeValue memoryNodeValues = 32;\n\trepeated NodeValue loadNodeValues = 33;\n\trepeated TrafficStat topTrafficStats = 34;\n\n\n\tmessage DailyStat {\n\t\tstring day = 1;\n\t\tint64 count = 2;\n\t}\n\n\n\tmessage TrafficStat {\n\t\tint64 userId = 1;\n\t\tstring userName = 2;\n\t\tint64 countRequests = 3;\n\t\tint64 bytes = 4;\n\t}\n}",
"doc": "" "doc": ""
}, },
{
"name": "CopyNodeActionsToNodeClusterRequest",
"code": "message CopyNodeActionsToNodeClusterRequest {\n\tint64 nodeId = 1;\n}",
"doc": "同步动作设置到集群"
},
{
"name": "CopyNodeActionsToNodeGroupRequest",
"code": "message CopyNodeActionsToNodeGroupRequest {\n\tint64 nodeId = 1;\n}",
"doc": "同步动作设置到分组"
},
{ {
"name": "CopyServerConfigRequest", "name": "CopyServerConfigRequest",
"code": "message CopyServerConfigRequest {\n\tint64 serverId = 1; // 被复制服务ID\n\tstring configCode = 2; // 要拷贝的配置代号\n\tstring targetType = 3; // 目标类型:servers, groups, cluster(当前集群下所有服务,只有管理员才有权限)、user(当前用户下所有服务)\n\trepeated int64 targetServerIds = 4; // 目标服务ID列表\n\trepeated int64 targetServerGroupIds = 5; // 目标服务分组ID列表\n\tint64 targetClusterId = 6; // 目标集群ID\n\tint64 targetUserId = 7; // 目标用户ID\n}", "code": "message CopyServerConfigRequest {\n\tint64 serverId = 1; // 被复制服务ID\n\tstring configCode = 2; // 要拷贝的配置代号\n\tstring targetType = 3; // 目标类型:servers, groups, cluster(当前集群下所有服务,只有管理员才有权限)、user(当前用户下所有服务)\n\trepeated int64 targetServerIds = 4; // 目标服务ID列表\n\trepeated int64 targetServerGroupIds = 5; // 目标服务分组ID列表\n\tint64 targetClusterId = 6; // 目标集群ID\n\tint64 targetUserId = 7; // 目标用户ID\n}",
@@ -14063,6 +14361,11 @@
"code": "message CountFormalClientSystemsRequest {\n\tstring keyword = 1; // 可选\n}", "code": "message CountFormalClientSystemsRequest {\n\tstring keyword = 1; // 可选\n}",
"doc": "计算操作系统信息数量" "doc": "计算操作系统信息数量"
}, },
{
"name": "CountHTTPCacheTaskKeysWithDayRequest",
"code": "message CountHTTPCacheTaskKeysWithDayRequest {\n\tstring keyType = 1; // Key类型:清理:purge,预热:fetch\n\tstring day = 2; // 日期,格式:YYYYMMDD\n}",
"doc": "计算当天已经清理的Key数量"
},
{ {
"name": "CountHTTPCacheTasksRequest", "name": "CountHTTPCacheTasksRequest",
"code": "message CountHTTPCacheTasksRequest {\n\n}", "code": "message CountHTTPCacheTasksRequest {\n\n}",
@@ -14768,6 +15071,16 @@
"code": "message CreateNSUserPlanResponse {\n\tint64 nsUserPlanId = 1;\n}", "code": "message CreateNSUserPlanResponse {\n\tint64 nsUserPlanId = 1;\n}",
"doc": "" "doc": ""
}, },
{
"name": "CreateNodeActionRequest",
"code": "message CreateNodeActionRequest {\n\tint64 nodeId = 1; // 节点ID\n\tstring role = 2; // 节点角色\n\tbytes condsJSON = 3; // 条件设置\n\tbytes actionJSON = 4; // 动作设置\n\tbytes durationJSON = 5; // 持续时间\n}",
"doc": "添加动作"
},
{
"name": "CreateNodeActionResponse",
"code": "message CreateNodeActionResponse {\n\tint64 nodeActionId = 1;\n}",
"doc": ""
},
{ {
"name": "CreateNodeClusterFirewallActionRequest", "name": "CreateNodeClusterFirewallActionRequest",
"code": "message CreateNodeClusterFirewallActionRequest {\n\tint64 nodeClusterId = 1;\n\tstring name = 2;\n\tstring eventLevel = 3;\n\tstring type = 4;\n\tbytes paramsJSON = 5;\n}", "code": "message CreateNodeClusterFirewallActionRequest {\n\tint64 nodeClusterId = 1;\n\tstring name = 2;\n\tstring eventLevel = 3;\n\tstring type = 4;\n\tbytes paramsJSON = 5;\n}",
@@ -15453,6 +15766,11 @@
"code": "message DeleteNSUserPlanRequest{\n\tint64 nsUserPlanId = 1;\n}", "code": "message DeleteNSUserPlanRequest{\n\tint64 nsUserPlanId = 1;\n}",
"doc": "删除用户套餐" "doc": "删除用户套餐"
}, },
{
"name": "DeleteNodeActionRequest",
"code": "message DeleteNodeActionRequest {\n\tint64 nodeActionId = 1;\n}",
"doc": "删除动作"
},
{ {
"name": "DeleteNodeClusterFirewallActionRequest", "name": "DeleteNodeClusterFirewallActionRequest",
"code": "message DeleteNodeClusterFirewallActionRequest {\n\tint64 nodeClusterFirewallActionId = 1;\n}", "code": "message DeleteNodeClusterFirewallActionRequest {\n\tint64 nodeClusterFirewallActionId = 1;\n}",
@@ -16728,6 +17046,16 @@
"code": "message FindAllNSRoutesResponse {\n\trepeated NSRoute nsRoutes = 1;\n}", "code": "message FindAllNSRoutesResponse {\n\trepeated NSRoute nsRoutes = 1;\n}",
"doc": "" "doc": ""
}, },
{
"name": "FindAllNodeActionsRequest",
"code": "message FindAllNodeActionsRequest {\n\tint64 nodeId = 1; // 节点ID\n\tstring role = 2; // 节点角色\n}",
"doc": "列出某个节点的所有动作"
},
{
"name": "FindAllNodeActionsResponse",
"code": "message FindAllNodeActionsResponse {\n\trepeated NodeAction nodeActions = 1; // 动作列表\n}",
"doc": ""
},
{ {
"name": "FindAllNodeClusterMetricItemsRequest", "name": "FindAllNodeClusterMetricItemsRequest",
"code": "message FindAllNodeClusterMetricItemsRequest {\n\tint64 nodeClusterId = 1;\n\tstring category = 2;\n}", "code": "message FindAllNodeClusterMetricItemsRequest {\n\tint64 nodeClusterId = 1;\n\tstring category = 2;\n}",
@@ -16748,6 +17076,16 @@
"code": "message FindAllNodeClustersWithMetricItemIdResponse {\n\trepeated NodeCluster nodeClusters = 1;\n}", "code": "message FindAllNodeClustersWithMetricItemIdResponse {\n\trepeated NodeCluster nodeClusters = 1;\n}",
"doc": "" "doc": ""
}, },
{
"name": "FindAllNodeScheduleInfoWithNodeClusterIdRequest",
"code": "message FindAllNodeScheduleInfoWithNodeClusterIdRequest {\n\tint64 nodeClusterId = 1; // 集群ID\n}",
"doc": "查找集群的节点调度信息"
},
{
"name": "FindAllNodeScheduleInfoWithNodeClusterIdResponse",
"code": "message FindAllNodeScheduleInfoWithNodeClusterIdResponse {\n\trepeated ScheduleInfo nodes = 1; // 调动信息列表\n\n\n\tmessage ScheduleInfo {\n\t\tint64 nodeId = 1; // 节点ID\n\t\tstring nodeName = 2; // 节点名称\n\t\tint64 nodeGroupId = 3; // 节点分组ID\n\t\tstring nodeGroupName = 4; // 节点分组名称\n\t\tstring offlineDay = 5; // 下线日期,格式YYYYMMDD\n\t\tbool isBackupForCluster = 6; // 是否为集群备份节点\n\t\tbool isBackupForGroup = 7; // 是否为分组备份节点\n\t\trepeated string backupIPs = 8; // 备用IP\n\t\tbytes actionStatusJSON = 9; // 动作状态\n\t}\n}",
"doc": ""
},
{ {
"name": "FindAllNotInstalledNodesWithNodeClusterIdRequest", "name": "FindAllNotInstalledNodesWithNodeClusterIdRequest",
"code": "message FindAllNotInstalledNodesWithNodeClusterIdRequest {\n\tint64 nodeClusterId = 1;\n}", "code": "message FindAllNotInstalledNodesWithNodeClusterIdRequest {\n\tint64 nodeClusterId = 1;\n}",
@@ -17540,7 +17878,7 @@
}, },
{ {
"name": "FindEnabledNodeClusterConfigInfoResponse", "name": "FindEnabledNodeClusterConfigInfoResponse",
"code": "message FindEnabledNodeClusterConfigInfoResponse {\n\tbool healthCheckIsOn = 1;\n\tbool hasFirewallActions = 2;\n\tbool hasThresholds = 3;\n\tbool hasMessageReceivers = 4;\n\tbool isTOAEnabled = 5;\n\tbool hasMetricItems = 6;\n\tbool webpIsOn = 7;\n\tbool uamIsOn = 10;\n\tbool hasSystemServices = 8;\n\tbool hasDDoSProtection = 9;\n}", "code": "message FindEnabledNodeClusterConfigInfoResponse {\n\tbool healthCheckIsOn = 1;\n\tbool hasFirewallActions = 2;\n\tbool hasThresholds = 3;\n\tbool hasMessageReceivers = 4;\n\tbool isTOAEnabled = 5;\n\tbool hasMetricItems = 6;\n\tbool webpIsOn = 7; // 是否定义了WebP策略\n\tbool uamIsOn = 10; // 是否定义了UAM策略\n\tbool httpCCIsOn = 12; // 是否定义了CC策略\n\tbool hasSystemServices = 8;\n\tbool hasDDoSProtection = 9;\n\tbool hasHTTPPagesPolicy = 11; // 是否设置了自定义页面策略\n}",
"doc": "" "doc": ""
}, },
{ {
@@ -17563,6 +17901,16 @@
"code": "message FindEnabledNodeClusterFirewallActionResponse {\n\tNodeClusterFirewallAction nodeClusterFirewallAction = 1;\n}", "code": "message FindEnabledNodeClusterFirewallActionResponse {\n\tNodeClusterFirewallAction nodeClusterFirewallAction = 1;\n}",
"doc": "" "doc": ""
}, },
{
"name": "FindEnabledNodeClusterHTTPCCPolicyRequest",
"code": "message FindEnabledNodeClusterHTTPCCPolicyRequest {\n\tint64 nodeClusterId = 1;\n}",
"doc": "读取集群的HTTP CC策略"
},
{
"name": "FindEnabledNodeClusterHTTPCCPolicyResponse",
"code": "message FindEnabledNodeClusterHTTPCCPolicyResponse {\n\tbytes httpCCPolicyJSON = 1;\n}",
"doc": ""
},
{ {
"name": "FindEnabledNodeClusterRequest", "name": "FindEnabledNodeClusterRequest",
"code": "message FindEnabledNodeClusterRequest {\n\tint64 nodeClusterId = 1;\n}", "code": "message FindEnabledNodeClusterRequest {\n\tint64 nodeClusterId = 1;\n}",
@@ -17610,7 +17958,7 @@
}, },
{ {
"name": "FindEnabledNodeConfigInfoResponse", "name": "FindEnabledNodeConfigInfoResponse",
"code": "message FindEnabledNodeConfigInfoResponse {\n\tbool hasDNSInfo = 1;\n\tbool hasCacheInfo = 2;\n\tbool hasThresholds = 3;\n\tbool hasSSH = 4;\n\tbool hasSystemSettings = 5;\n\tbool hasDDoSProtection = 6;\n}", "code": "message FindEnabledNodeConfigInfoResponse {\n\tbool hasDNSInfo = 1; // 是否有DNS设置\n\tbool hasCacheInfo = 2; // 是否有缓存设置\n\tbool hasThresholds = 3; // 是否有阈值设置\n\tbool hasSSH = 4; // 是否有SSH设置\n\tbool hasSystemSettings = 5; // 是否有系统设置\n\tbool hasDDoSProtection = 6; // 是否有DDoS防护设置\n\tbool hasScheduleSettings = 7; // 是否有调度设置\n}",
"doc": "" "doc": ""
}, },
{ {
@@ -18433,6 +18781,16 @@
"code": "message FindNSDomainGroupResponse {\n\tNSDomainGroup nsDomainGroup = 1;\n}", "code": "message FindNSDomainGroupResponse {\n\tNSDomainGroup nsDomainGroup = 1;\n}",
"doc": "" "doc": ""
}, },
{
"name": "FindNSDomainRecordsHealthCheckRequest",
"code": "message FindNSDomainRecordsHealthCheckRequest {\n\tint64 nsDomainId = 1; // 域名ID\n}",
"doc": "查询记录健康检查全局设置"
},
{
"name": "FindNSDomainRecordsHealthCheckResponse",
"code": "message FindNSDomainRecordsHealthCheckResponse {\n\tbytes nsDomainRecordsHealthCheckJSON = 1; // 健康检查设置\n}",
"doc": ""
},
{ {
"name": "FindNSDomainRequest", "name": "FindNSDomainRequest",
"code": "message FindNSDomainRequest {\n\tint64 nsDomainId = 1; // 域名ID\n}", "code": "message FindNSDomainRequest {\n\tint64 nsDomainId = 1; // 域名ID\n}",
@@ -18543,6 +18901,16 @@
"code": "message FindNSQuestionOptionResponse {\n\tNSQuestionOption nsQuestionOption = 1;\n}", "code": "message FindNSQuestionOptionResponse {\n\tNSQuestionOption nsQuestionOption = 1;\n}",
"doc": "" "doc": ""
}, },
{
"name": "FindNSRecordHealthCheckRequest",
"code": "message FindNSRecordHealthCheckRequest {\n\tint64 nsRecordId = 1; // 记录ID\n}",
"doc": "查询记录健康检查设置"
},
{
"name": "FindNSRecordHealthCheckResponse",
"code": "message FindNSRecordHealthCheckResponse {\n\tbytes nsRecordHealthCheckJSON = 1; // 记录健康检查配置\n}",
"doc": ""
},
{ {
"name": "FindNSRecordHourlyStatRequest", "name": "FindNSRecordHourlyStatRequest",
"code": "message FindNSRecordHourlyStatRequest {\n\tint64 nsRecordId = 1; // 记录ID\n\tstring hour = 2; // YYYYMMDDHH\n}", "code": "message FindNSRecordHourlyStatRequest {\n\tint64 nsRecordId = 1; // 记录ID\n\tstring hour = 2; // YYYYMMDDHH\n}",
@@ -18643,6 +19011,16 @@
"code": "message FindNodeAPIConfigResponse {\n\tbytes apiNodeAddrsJSON = 1;\n}", "code": "message FindNodeAPIConfigResponse {\n\tbytes apiNodeAddrsJSON = 1;\n}",
"doc": "" "doc": ""
}, },
{
"name": "FindNodeActionRequest",
"code": "message FindNodeActionRequest {\n\tint64 nodeActionId = 1; // 动作ID\n}",
"doc": "查找单个节点动作"
},
{
"name": "FindNodeActionResponse",
"code": "message FindNodeActionResponse {\n\tNodeAction nodeAction = 1;\n}",
"doc": ""
},
{ {
"name": "FindNodeClusterDDoSProtectionRequest", "name": "FindNodeClusterDDoSProtectionRequest",
"code": "message FindNodeClusterDDoSProtectionRequest {\n\tint64 nodeClusterId = 1;\n}", "code": "message FindNodeClusterDDoSProtectionRequest {\n\tint64 nodeClusterId = 1;\n}",
@@ -18663,6 +19041,16 @@
"code": "message FindNodeClusterGlobalServerConfigResponse {\n\tbytes globalServerConfigJSON = 1;\n}", "code": "message FindNodeClusterGlobalServerConfigResponse {\n\tbytes globalServerConfigJSON = 1;\n}",
"doc": "" "doc": ""
}, },
{
"name": "FindNodeClusterHTTPPagesPolicyRequest",
"code": "message FindNodeClusterHTTPPagesPolicyRequest {\n\tint64 nodeClusterId = 1;\n}",
"doc": "获取集群的自定义页面设置"
},
{
"name": "FindNodeClusterHTTPPagesPolicyResponse",
"code": "message FindNodeClusterHTTPPagesPolicyResponse {\n\tbytes httpPagesPolicyJSON = 1; // HTTP自定义页面策略配置\n}",
"doc": ""
},
{ {
"name": "FindNodeClusterHealthCheckConfigRequest", "name": "FindNodeClusterHealthCheckConfigRequest",
"code": "message FindNodeClusterHealthCheckConfigRequest {\n\tint64 nodeClusterId = 1;\n}", "code": "message FindNodeClusterHealthCheckConfigRequest {\n\tint64 nodeClusterId = 1;\n}",
@@ -18723,6 +19111,26 @@
"code": "message FindNodeGlobalServerConfigResponse {\n\tbytes globalServerConfigJSON = 1;\n}", "code": "message FindNodeGlobalServerConfigResponse {\n\tbytes globalServerConfigJSON = 1;\n}",
"doc": "" "doc": ""
}, },
{
"name": "FindNodeHTTPCCPoliciesRequest",
"code": "message FindNodeHTTPCCPoliciesRequest {\n\tint64 nodeId = 1; // 节点ID\n}",
"doc": "查找节点的HTTP CC策略"
},
{
"name": "FindNodeHTTPCCPoliciesResponse",
"code": "message FindNodeHTTPCCPoliciesResponse {\n\trepeated HTTPCCPolicy httpCCPolicies = 1; // HTTP CC策略列表\n\n\n\tmessage HTTPCCPolicy {\n\t\tint64 nodeClusterId = 1; // 集群ID\n\t\tbytes httpCCPolicyJSON = 2; // HTTP CC策略配置\n\t}\n}",
"doc": ""
},
{
"name": "FindNodeHTTPPagesPoliciesRequest",
"code": "message FindNodeHTTPPagesPoliciesRequest {\n\tint64 nodeId = 1; // 节点ID\n}",
"doc": "查找节点的自定义页面策略"
},
{
"name": "FindNodeHTTPPagesPoliciesResponse",
"code": "message FindNodeHTTPPagesPoliciesResponse {\n\trepeated HTTPPagesPolicy httpPagesPolicies = 1; // 自定义页面策略列表\n\n\n\tmessage HTTPPagesPolicy {\n\t\tint64 nodeClusterId = 1; // 集群ID\n\t\tbytes httpPagesPolicyJSON = 2; // 自定义页面策略配置\n\t}\n}",
"doc": ""
},
{ {
"name": "FindNodeInstallStatusRequest", "name": "FindNodeInstallStatusRequest",
"code": "message FindNodeInstallStatusRequest {\n\tint64 nodeId = 1;\n}", "code": "message FindNodeInstallStatusRequest {\n\tint64 nodeId = 1;\n}",
@@ -18748,6 +19156,16 @@
"code": "message FindNodeLoginSuggestPortsResponse {\n\trepeated int32 ports = 1;\n\trepeated int32 availablePorts = 2;\n}", "code": "message FindNodeLoginSuggestPortsResponse {\n\trepeated int32 ports = 1;\n\trepeated int32 availablePorts = 2;\n}",
"doc": "" "doc": ""
}, },
{
"name": "FindNodeScheduleInfoRequest",
"code": "message FindNodeScheduleInfoRequest {\n\tint64 nodeId = 1; // 节点ID\n}",
"doc": "查找节点调度信息"
},
{
"name": "FindNodeScheduleInfoResponse",
"code": "message FindNodeScheduleInfoResponse {\n\tScheduleInfo scheduleInfo = 1; // 调度信息\n\n\n\tmessage ScheduleInfo {\n\t\tstring offlineDay = 1; // 下线日期,格式YYYYMMDD\n\t\tbool isBackupForCluster = 2; // 是否为集群备份节点\n\t\tbool isBackupForGroup = 3; // 是否为分组备份节点\n\t\trepeated string backupIPs = 4; // 备用IP\n\t\tbytes actionStatusJSON = 5; // 动作状态\n\t}\n}",
"doc": ""
},
{ {
"name": "FindNodeTasksRequest", "name": "FindNodeTasksRequest",
"code": "message FindNodeTasksRequest {\n\tint64 version = 1; // 上一次执行的版本\n}", "code": "message FindNodeTasksRequest {\n\tint64 version = 1; // 上一次执行的版本\n}",
@@ -19845,7 +20263,7 @@
}, },
{ {
"name": "ListNSRecordsRequest", "name": "ListNSRecordsRequest",
"code": "message ListNSRecordsRequest {\n\tint64 nsDomainId = 1;\n\tstring type = 2;\n\tint64 nsRouteId = 3 [deprecated = true]; // 使用nsRouteCode代替\n\tstring nsRouteCode = 7;\n\tstring keyword = 4;\n\n\tbool nameAsc = 8;\n\tbool nameDesc = 9;\n\tbool typeAsc = 10;\n\tbool typeDesc = 11;\n\tbool ttlAsc = 12;\n\tbool ttlDesc = 13;\n\n\tint64 offset = 5;\n\tint64 size = 6;\n}", "code": "message ListNSRecordsRequest {\n\tint64 nsDomainId = 1;\n\tstring type = 2;\n\tint64 nsRouteId = 3 [deprecated = true]; // 使用nsRouteCode代替\n\tstring nsRouteCode = 7;\n\tstring keyword = 4;\n\n\tbool nameAsc = 8;\n\tbool nameDesc = 9;\n\tbool typeAsc = 10;\n\tbool typeDesc = 11;\n\tbool ttlAsc = 12;\n\tbool ttlDesc = 13;\n\tbool upAsc = 14;\n\tbool upDesc = 15;\n\n\tint64 offset = 5;\n\tint64 size = 6;\n}",
"doc": "读取单页记录" "doc": "读取单页记录"
}, },
{ {
@@ -20220,7 +20638,7 @@
}, },
{ {
"name": "NSDomain", "name": "NSDomain",
"code": "message NSDomain {\n\tint64 id = 1;\n\tstring name = 2;\n\tbool isOn = 3;\n\tint64 createdAt = 4;\n\tbool isDeleted = 5;\n\tint64 version = 6;\n\tbytes tsigJSON = 7;\n\trepeated int64 nsDomainGroupIds = 8;\n\tstring status = 9;\n\tint64 userId = 10; // 用户ID\n\n\tNSCluster nsCluster = 30;\n\tUser user = 31;\n\trepeated NSDomainGroup nsDomainGroups = 32;\n}", "code": "message NSDomain {\n\tint64 id = 1;\n\tstring name = 2;\n\tbool isOn = 3;\n\tint64 createdAt = 4;\n\tbool isDeleted = 5;\n\tint64 version = 6;\n\tbytes tsigJSON = 7;\n\trepeated int64 nsDomainGroupIds = 8;\n\tstring status = 9;\n\tint64 userId = 10; // 用户ID\n\tbytes recordsHealthCheckJSON = 11; // 健康检查设置\n\n\tNSCluster nsCluster = 30;\n\tUser user = 31;\n\trepeated NSDomainGroup nsDomainGroups = 32;\n}",
"doc": "DNS域名" "doc": "DNS域名"
}, },
{ {
@@ -20255,7 +20673,7 @@
}, },
{ {
"name": "NSRecord", "name": "NSRecord",
"code": "message NSRecord {\n\tint64 id = 1;\n\tstring description = 2;\n\tstring name = 3;\n\tstring type = 4;\n\tstring value = 5;\n\n\tint32 mxPriority = 12; // mx优先级\n\n\tint32 srvPriority = 13; // SRV优先级\n\tint32 srvWeight = 14; // SRV权重\n\tint32 srvPort = 15; // SRV端口\n\n\tint32 caaFlag = 16; // CAA Flag\n\tstring caaTag = 17; // CAA TAG\n\n\tint32 ttl = 6;\n\tint32 weight = 7;\n\tint64 createdAt = 8;\n\tbool isDeleted = 9;\n\tint64 version = 10;\n\tbool isOn = 11;\n\n\tNSDomain nsDomain = 30;\n\trepeated NSRoute nsRoutes = 31;\n}", "code": "message NSRecord {\n\tint64 id = 1; // 记录ID\n\tstring description = 2; // 备注\n\tstring name = 3; // 记录名\n\tstring type = 4; // 记录类型\n\tstring value = 5; // 记录值\n\n\tint32 mxPriority = 12; // mx优先级\n\n\tint32 srvPriority = 13; // SRV优先级\n\tint32 srvWeight = 14; // SRV权重\n\tint32 srvPort = 15; // SRV端口\n\n\tint32 caaFlag = 16; // CAA Flag\n\tstring caaTag = 17; // CAA TAG\n\n\tint32 ttl = 6; // TTL\n\tint32 weight = 7; // 权重\n\tint64 createdAt = 8;\n\tbool isDeleted = 9;\n\tint64 version = 10;\n\tbool isOn = 11; // 是否启用\n\n\tbytes healthCheckJSON = 18; // 健康检查配置\n\tbool isUp = 19; // 是否在线(根据健康检查结果)\n\n\tNSDomain nsDomain = 30; // 所属域名\n\trepeated NSRoute nsRoutes = 31; // 线路\n}",
"doc": "域名记录" "doc": "域名记录"
}, },
{ {
@@ -20290,9 +20708,14 @@
}, },
{ {
"name": "Node", "name": "Node",
"code": "message Node {\n\tint64 id = 1;\n\tstring name = 2;\n\tbytes statusJSON = 3;\n\tstring installDir = 4;\n\tbool isInstalled = 5;\n\tstring code = 6;\n\tstring uniqueId = 7;\n\tstring secret = 8;\n\tint64 version = 9;\n\tint64 latestVersion = 10;\n\trepeated int64 connectedAPINodeIds = 11;\n\tint32 maxCPU = 12;\n\tbool isOn = 13;\n\tbool isUp = 14;\n\trepeated DNSRoute dnsRoutes = 15;\n\tbool isActive = 16;\n\tSizeCapacity maxCacheDiskCapacity = 17;\n\tSizeCapacity maxCacheMemoryCapacity = 18;\n\tstring cacheDiskDir = 19;\n\tbytes cacheDiskSubDirsJSON = 23;\n\tint32 level = 20;\n\trepeated string lnAddrs = 21; // Ln访问地址\n\tbool enableIPLists = 22;\n\tbytes apiNodeAddrsJSON = 24;\n\n\tNodeCluster nodeCluster = 32; // 主集群\n\tNodeLogin nodeLogin = 33;\n\tNodeInstallStatus installStatus = 34;\n\trepeated NodeIPAddress ipAddresses = 35;\n\tNodeGroup nodeGroup = 36;\n\tNodeRegion nodeRegion = 37;\n\trepeated NodeCluster secondaryNodeClusters = 38; // 从集群\n}", "code": "message Node {\n\tint64 id = 1;\n\tstring name = 2;\n\tbytes statusJSON = 3;\n\tstring installDir = 4;\n\tbool isInstalled = 5;\n\tstring code = 6;\n\tstring uniqueId = 7;\n\tstring secret = 8;\n\tint64 version = 9;\n\tint64 latestVersion = 10;\n\trepeated int64 connectedAPINodeIds = 11;\n\tint32 maxCPU = 12;\n\tbool isOn = 13;\n\tbool isUp = 14;\n\trepeated DNSRoute dnsRoutes = 15;\n\tbool isActive = 16;\n\tSizeCapacity maxCacheDiskCapacity = 17;\n\tSizeCapacity maxCacheMemoryCapacity = 18;\n\tstring cacheDiskDir = 19;\n\tbytes cacheDiskSubDirsJSON = 23;\n\tint32 level = 20;\n\trepeated string lnAddrs = 21; // Ln访问地址\n\tbool enableIPLists = 22;\n\tbytes apiNodeAddrsJSON = 24;\n\tstring offlineDay = 25; // 下线日期\n\tbool isBackupForCluster = 26; // 是否为集群备用节点\n\tbool isBackupForGroup = 27; // 是否为分组备用节点\n\n\tNodeCluster nodeCluster = 32; // 主集群\n\tNodeLogin nodeLogin = 33;\n\tNodeInstallStatus installStatus = 34;\n\trepeated NodeIPAddress ipAddresses = 35;\n\tNodeGroup nodeGroup = 36;\n\tNodeRegion nodeRegion = 37;\n\trepeated NodeCluster secondaryNodeClusters = 38; // 从集群\n}",
"doc": "" "doc": ""
}, },
{
"name": "NodeAction",
"code": "message NodeAction {\n\tint64 id = 1;\n\tint64 nodeId = 2;\n\tstring role = 3;\n\tbool isOn = 4; // 是否启用\n\tbytes condsJSON = 5; // 条件定义\n\tbytes actionJSON = 6; // 动作定义\n\tbytes durationJSON = 7; // 持续时间\n}",
"doc": "节点动作"
},
{ {
"name": "NodeCluster", "name": "NodeCluster",
"code": "message NodeCluster {\n\tint64 id = 1;\n\tstring name = 2;\n\tint64 createdAt = 3;\n\tint64 nodeGrantId = 4;\n\tstring installDir = 5;\n\tstring uniqueId = 6;\n\tstring secret = 7;\n\tstring dnsName = 8;\n\tint64 dnsDomainId = 9;\n\tstring dnsDefaultRoute = 22; // DNS默认线路\n\tint64 httpCachePolicyId = 10;\n\tint64 httpFirewallPolicyId = 11;\n\tbool isOn = 12;\n\tstring timeZone = 13;\n\tint32 nodeMaxThreads = 14;\n\tbool autoOpenPorts = 16;\n\tbool isPinned = 17;\n\tbytes clockJSON = 18;\n\tbool autoRemoteStart = 19;\n\tbool autoInstallNftables = 20;\n\tbytes sshParamsJSON = 21;\n}", "code": "message NodeCluster {\n\tint64 id = 1;\n\tstring name = 2;\n\tint64 createdAt = 3;\n\tint64 nodeGrantId = 4;\n\tstring installDir = 5;\n\tstring uniqueId = 6;\n\tstring secret = 7;\n\tstring dnsName = 8;\n\tint64 dnsDomainId = 9;\n\tstring dnsDefaultRoute = 22; // DNS默认线路\n\tint64 httpCachePolicyId = 10;\n\tint64 httpFirewallPolicyId = 11;\n\tbool isOn = 12;\n\tstring timeZone = 13;\n\tint32 nodeMaxThreads = 14;\n\tbool autoOpenPorts = 16;\n\tbool isPinned = 17;\n\tbytes clockJSON = 18;\n\tbool autoRemoteStart = 19;\n\tbool autoInstallNftables = 20;\n\tbytes sshParamsJSON = 21;\n}",
@@ -20310,7 +20733,7 @@
}, },
{ {
"name": "NodeDNSInfo", "name": "NodeDNSInfo",
"code": "message NodeDNSInfo {\n\tint64 id = 1;\n\tstring name = 2;\n\tstring ipAddr = 3;\n\tint64 nodeIPAddressId = 9;\n\trepeated DNSRoute routes = 4;\n\tint64 nodeClusterId = 5;\n\tint64 dnsDomainId = 6;\n\tstring dnsDomainName = 7;\n\tstring nodeClusterDNSName = 8;\n}", "code": "message NodeDNSInfo {\n\tint64 id = 1;\n\tstring name = 2;\n\tstring ipAddr = 3;\n\tint64 nodeIPAddressId = 9;\n\trepeated DNSRoute routes = 4;\n\tint64 nodeClusterId = 5;\n\tint64 dnsDomainId = 6;\n\tstring dnsDomainName = 7;\n\tstring nodeClusterDNSName = 8;\n\tbool isBackupForCluster = 10; // 是否为集群备份节点\n\tbool isBackupForGroup = 11; // 是否为分组备份节点\n\tbool isOffline = 12; // 是否下线\n}",
"doc": "" "doc": ""
}, },
{ {
@@ -20593,6 +21016,11 @@
"code": "message ResetHTTPCacheTaskRequest {\n\tint64 httpCacheTaskId = 1;\n}", "code": "message ResetHTTPCacheTaskRequest {\n\tint64 httpCacheTaskId = 1;\n}",
"doc": "重置任务状态" "doc": "重置任务状态"
}, },
{
"name": "ResetNodeActionStatusRequest",
"code": "message ResetNodeActionStatusRequest {\n\tint64 nodeId = 1; // 节点ID\n}",
"doc": "重置节点动作状态"
},
{ {
"name": "ResetSSLCertsWithOCSPErrorRequest", "name": "ResetSSLCertsWithOCSPErrorRequest",
"code": "message ResetSSLCertsWithOCSPErrorRequest {\n\trepeated int64 sslCertIds = 1;\n}", "code": "message ResetSSLCertsWithOCSPErrorRequest {\n\trepeated int64 sslCertIds = 1;\n}",
@@ -21113,6 +21541,11 @@
"code": "message UpdateHTTPHeaderPolicyDeletingHeadersRequest {\n\tint64 httpHeaderPolicyId = 1;\n\trepeated string headerNames = 2;\n}", "code": "message UpdateHTTPHeaderPolicyDeletingHeadersRequest {\n\tint64 httpHeaderPolicyId = 1;\n\trepeated string headerNames = 2;\n}",
"doc": "修改删除的Headers" "doc": "修改删除的Headers"
}, },
{
"name": "UpdateHTTPHeaderPolicyNonStandardHeadersRequest",
"code": "message UpdateHTTPHeaderPolicyNonStandardHeadersRequest {\n\tint64 httpHeaderPolicyId = 1; // Header策略ID\n\trepeated string headerNames = 2; // 非标Header名称列表\n}",
"doc": "修改非标的Headers"
},
{ {
"name": "UpdateHTTPHeaderPolicyReplacingHeadersRequest", "name": "UpdateHTTPHeaderPolicyReplacingHeadersRequest",
"code": "message UpdateHTTPHeaderPolicyReplacingHeadersRequest {\n\tint64 httpHeaderPolicyId = 1;\n\tbytes headersJSON = 2;\n}", "code": "message UpdateHTTPHeaderPolicyReplacingHeadersRequest {\n\tint64 httpHeaderPolicyId = 1;\n\tbytes headersJSON = 2;\n}",
@@ -21428,6 +21861,11 @@
"code": "message UpdateNSDomainGroupRequest {\n\tint64 nsDomainGroupId = 1;\n\tstring name = 2;\n\tbool isOn = 3;\n}", "code": "message UpdateNSDomainGroupRequest {\n\tint64 nsDomainGroupId = 1;\n\tstring name = 2;\n\tbool isOn = 3;\n}",
"doc": "修改分组" "doc": "修改分组"
}, },
{
"name": "UpdateNSDomainRecordsHealthCheckRequest",
"code": "message UpdateNSDomainRecordsHealthCheckRequest {\n\tint64 nsDomainId = 1; // 域名ID\n\tbytes nsDomainRecordsHealthCheckJSON = 2; // 健康检查设置\n}",
"doc": "修改记录健康检查全局设置"
},
{ {
"name": "UpdateNSDomainRequest", "name": "UpdateNSDomainRequest",
"code": "message UpdateNSDomainRequest {\n\tint64 nsDomainId = 1;\n\tint64 nsClusterId = 2;\n\tint64 userId = 3;\n\trepeated int64 nsDomainGroupIds = 5; // 域名分组ID\n\tbool isOn = 4;\n}", "code": "message UpdateNSDomainRequest {\n\tint64 nsDomainId = 1;\n\tint64 nsClusterId = 2;\n\tint64 userId = 3;\n\trepeated int64 nsDomainGroupIds = 5; // 域名分组ID\n\tbool isOn = 4;\n}",
@@ -21488,6 +21926,16 @@
"code": "message UpdateNSPlanRequest {\n\tint64 nsPlanId = 1;\n\tstring name = 2;\n\tbool isOn = 3;\n\tfloat monthlyPrice = 4;\n\tfloat yearlyPrice = 5;\n\tbytes configJSON = 6;\n}", "code": "message UpdateNSPlanRequest {\n\tint64 nsPlanId = 1;\n\tstring name = 2;\n\tbool isOn = 3;\n\tfloat monthlyPrice = 4;\n\tfloat yearlyPrice = 5;\n\tbytes configJSON = 6;\n}",
"doc": "修改DNS套餐" "doc": "修改DNS套餐"
}, },
{
"name": "UpdateNSRecordHealthCheckRequest",
"code": "message UpdateNSRecordHealthCheckRequest {\n\tint64 nsRecordId = 1; // 记录ID\n\tbytes nsRecordHealthCheckJSON = 2; // 记录健康检查配置\n}",
"doc": "修改记录健康检查设置"
},
{
"name": "UpdateNSRecordIsUpRequest",
"code": "message UpdateNSRecordIsUpRequest {\n\tint64 nsRecordId = 1; // 记录ID\n\tbool isUp = 2; // 是否在线\n}",
"doc": "手动修改记录在线状态"
},
{ {
"name": "UpdateNSRecordRequest", "name": "UpdateNSRecordRequest",
"code": "message UpdateNSRecordRequest {\n\tint64 nsRecordId = 1;\n\tstring description = 2;\n\tstring name = 3;\n\tstring type = 4;\n\tstring value = 5;\n\tint32 ttl = 6;\n\trepeated int64 nsRouteIds = 7 [deprecated = true];\n\tbool isOn = 8;\n\trepeated string nsRouteCodes = 9; // 路线代号\n\tint32 weight = 16; // 权重\n\n\tint32 mxPriority = 10; // mx优先级\n\n\tint32 srvPriority = 11; // SRV优先级\n\tint32 srvWeight = 12; // SRV权重\n\tint32 srvPort = 13; // SRV端口\n\n\tint32 caaFlag = 14; // CAA Flag\n\tstring caaTag = 15; // CAA TAG\n}", "code": "message UpdateNSRecordRequest {\n\tint64 nsRecordId = 1;\n\tstring description = 2;\n\tstring name = 3;\n\tstring type = 4;\n\tstring value = 5;\n\tint32 ttl = 6;\n\trepeated int64 nsRouteIds = 7 [deprecated = true];\n\tbool isOn = 8;\n\trepeated string nsRouteCodes = 9; // 路线代号\n\tint32 weight = 16; // 权重\n\n\tint32 mxPriority = 10; // mx优先级\n\n\tint32 srvPriority = 11; // SRV优先级\n\tint32 srvWeight = 12; // SRV权重\n\tint32 srvPort = 13; // SRV端口\n\n\tint32 caaFlag = 14; // CAA Flag\n\tstring caaTag = 15; // CAA TAG\n}",
@@ -21533,6 +21981,16 @@
"code": "message UpdateNodeAPIConfigRequest {\n\tint64 nodeId = 1;\n\tbytes apiNodeAddrsJSON = 2;\n}", "code": "message UpdateNodeAPIConfigRequest {\n\tint64 nodeId = 1;\n\tbytes apiNodeAddrsJSON = 2;\n}",
"doc": "修改某个节点的API相关配置" "doc": "修改某个节点的API相关配置"
}, },
{
"name": "UpdateNodeActionOrdersRequest",
"code": "message UpdateNodeActionOrdersRequest {\n\trepeated int64 nodeActionIds = 1; // 节点动作ID列表\n}",
"doc": "设置节点动作排序"
},
{
"name": "UpdateNodeActionRequest",
"code": "message UpdateNodeActionRequest {\n\tint64 nodeActionId = 1; // 动作ID\n\tbytes condsJSON = 2;\n\tbytes actionJSON = 3;\n\tbytes durationJSON = 4; // 持续时间\n\tbool isOn = 5; // 是否启用\n}",
"doc": "修改动作"
},
{ {
"name": "UpdateNodeCacheRequest", "name": "UpdateNodeCacheRequest",
"code": "message UpdateNodeCacheRequest {\n\tint64 nodeId = 1; // 节点ID\n\tSizeCapacity maxCacheDiskCapacity = 2; // 磁盘容量限制\n\tSizeCapacity maxCacheMemoryCapacity = 3; // 内存容量限制\n\tstring cacheDiskDir = 4; // 磁盘缓存目录\n\tbytes cacheDiskSubDirsJSON = 5; // 磁盘缓存子目录\n}", "code": "message UpdateNodeCacheRequest {\n\tint64 nodeId = 1; // 节点ID\n\tSizeCapacity maxCacheDiskCapacity = 2; // 磁盘容量限制\n\tSizeCapacity maxCacheMemoryCapacity = 3; // 内存容量限制\n\tstring cacheDiskDir = 4; // 磁盘缓存目录\n\tbytes cacheDiskSubDirsJSON = 5; // 磁盘缓存子目录\n}",
@@ -21558,6 +22016,11 @@
"code": "message UpdateNodeClusterGlobalServerConfigRequest {\n\tint64 nodeClusterId = 1;\n\tbytes globalServerConfigJSON = 2;\n}", "code": "message UpdateNodeClusterGlobalServerConfigRequest {\n\tint64 nodeClusterId = 1;\n\tbytes globalServerConfigJSON = 2;\n}",
"doc": "修改集群的全局服务设置" "doc": "修改集群的全局服务设置"
}, },
{
"name": "UpdateNodeClusterHTTPCCPolicyRequest",
"code": "message UpdateNodeClusterHTTPCCPolicyRequest {\n\tint64 nodeClusterId = 1;\n\tbytes httpCCPolicyJSON = 2;\n}",
"doc": "设置集群的HTTP CC策略"
},
{ {
"name": "UpdateNodeClusterHTTPCachePolicyIdRequest", "name": "UpdateNodeClusterHTTPCachePolicyIdRequest",
"code": "message UpdateNodeClusterHTTPCachePolicyIdRequest {\n\tint64 nodeClusterId = 1;\n\tint64 httpCachePolicyId = 2;\n}", "code": "message UpdateNodeClusterHTTPCachePolicyIdRequest {\n\tint64 nodeClusterId = 1;\n\tint64 httpCachePolicyId = 2;\n}",
@@ -21568,6 +22031,11 @@
"code": "message UpdateNodeClusterHTTPFirewallPolicyIdRequest {\n\tint64 nodeClusterId = 1;\n\tint64 httpFirewallPolicyId = 2;\n}", "code": "message UpdateNodeClusterHTTPFirewallPolicyIdRequest {\n\tint64 nodeClusterId = 1;\n\tint64 httpFirewallPolicyId = 2;\n}",
"doc": "修改集群的WAF策略" "doc": "修改集群的WAF策略"
}, },
{
"name": "UpdateNodeClusterHTTPPagesPolicyRequest",
"code": "message UpdateNodeClusterHTTPPagesPolicyRequest {\n\tint64 nodeClusterId = 1;\n\tbytes httpPagesPolicyJSON = 2; // HTTP自定义页面策略配置\n}",
"doc": "修改集群的自定义页面设置"
},
{ {
"name": "UpdateNodeClusterHealthCheckRequest", "name": "UpdateNodeClusterHealthCheckRequest",
"code": "message UpdateNodeClusterHealthCheckRequest {\n\tint64 nodeClusterId = 1;\n\tbytes healthCheckJSON = 2;\n}", "code": "message UpdateNodeClusterHealthCheckRequest {\n\tint64 nodeClusterId = 1;\n\tbytes healthCheckJSON = 2;\n}",
@@ -21703,6 +22171,11 @@
"code": "message UpdateNodeRequest {\n\tint64 nodeId = 1;\n\tstring name = 2;\n\tint64 nodeClusterId = 3;\n\trepeated int64 secondaryNodeClusterIds = 13;\n\tbool isOn = 6;\n\tint64 nodeGroupId = 7;\n\tint64 nodeRegionId = 10;\n\tint32 level = 14;\n\trepeated string lnAddrs = 15; // Ln节点访问地址\n\tbool enableIPLists = 16; // 是否启用IP名单\n}", "code": "message UpdateNodeRequest {\n\tint64 nodeId = 1;\n\tstring name = 2;\n\tint64 nodeClusterId = 3;\n\trepeated int64 secondaryNodeClusterIds = 13;\n\tbool isOn = 6;\n\tint64 nodeGroupId = 7;\n\tint64 nodeRegionId = 10;\n\tint32 level = 14;\n\trepeated string lnAddrs = 15; // Ln节点访问地址\n\tbool enableIPLists = 16; // 是否启用IP名单\n}",
"doc": "修改节点" "doc": "修改节点"
}, },
{
"name": "UpdateNodeScheduleInfoRequest",
"code": "message UpdateNodeScheduleInfoRequest {\n\tint64 nodeId = 1; // 节点ID\n\tstring offlineDay = 2; // 下线日期,格式YYYYMMDD\n\tbool isBackupForCluster = 3; // 是否为集群备份节点\n\tbool isBackupForGroup = 4; // 是否为分组备份节点\n\trepeated string backupIPs = 5; // 备用IP\n}",
"doc": "修改节点调度信息"
},
{ {
"name": "UpdateNodeStatusRequest", "name": "UpdateNodeStatusRequest",
"code": "message UpdateNodeStatusRequest {\n\tint64 nodeId = 1;\n\tbytes statusJSON = 2;\n}", "code": "message UpdateNodeStatusRequest {\n\tint64 nodeId = 1;\n\tbytes statusJSON = 2;\n}",
+2 -6
View File
@@ -113,8 +113,6 @@ golang.org/x/net v0.0.0-20190923162816-aa69164e4478/go.mod h1:z5CRVTTTmAJ677TzLL
golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM=
golang.org/x/net v0.2.0 h1:sZfSu1wtKLGlWI4ZZayP0ck9Y73K1ynO6gqzTdBVdPU=
golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY=
golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ= golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ=
golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc=
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
@@ -138,16 +136,14 @@ golang.org/x/sys v0.0.0-20200519105757-fe76b779f299/go.mod h1:h1NjWce9XRLGQEsW7w
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.2.0 h1:ljd4t30dBnAvMZaQCevtY0xLLD0A+bRZXbgLMLU1F/A= golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ=
golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68=
golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
+22
View File
@@ -0,0 +1,22 @@
// Copyright 2023 GoEdge CDN goedge.cdn@gmail.com. All rights reserved. Official site: https://goedge.cn .
//go:build !plus
package nodeconfigs
import "github.com/TeaOSLab/EdgeCommon/pkg/serverconfigs"
// HTTPCCPolicy CC策略
type HTTPCCPolicy struct {
IsOn bool `json:"isOn" yaml:"isOn"`
Thresholds []*serverconfigs.HTTPCCThreshold `json:"thresholds" yaml:"thresholds"` // 阈值
}
func NewHTTPCCPolicy() *HTTPCCPolicy {
return &HTTPCCPolicy{
IsOn: true,
}
}
func (this *HTTPCCPolicy) Init() error {
return nil
}
+28
View File
@@ -0,0 +1,28 @@
// Copyright 2023 GoEdge CDN goedge.cdn@gmail.com. All rights reserved. Official site: https://goedge.cn .
package nodeconfigs
import "github.com/TeaOSLab/EdgeCommon/pkg/serverconfigs"
// HTTPPagesPolicy 全局的HTTP自定义页面设置
type HTTPPagesPolicy struct {
IsOn bool `json:"isOn" yaml:"isOn"` // 是否启用
Pages []*serverconfigs.HTTPPageConfig `json:"pages" yaml:"pages"` // 自定义页面
}
func NewHTTPPagesPolicy() *HTTPPagesPolicy {
return &HTTPPagesPolicy{}
}
func (this *HTTPPagesPolicy) Init() error {
if len(this.Pages) > 0 {
for _, page := range this.Pages {
err := page.Init()
if err != nil {
return err
}
}
}
return nil
}
+76 -2
View File
@@ -24,6 +24,8 @@ import (
var sharedNodeConfig *NodeConfig = nil var sharedNodeConfig *NodeConfig = nil
var uamPolicyLocker = &sync.RWMutex{} var uamPolicyLocker = &sync.RWMutex{}
var httpCCPolicyLocker = &sync.RWMutex{}
var httpPagesPolicyLocker = &sync.RWMutex{}
type ServerError struct { type ServerError struct {
Id int64 Id int64
@@ -98,7 +100,13 @@ type NodeConfig struct {
WebPImagePolicies map[int64]*WebPImagePolicy `yaml:"webpImagePolicies" json:"webpImagePolicies"` // clusterId => *WebPImagePolicy WebPImagePolicies map[int64]*WebPImagePolicy `yaml:"webpImagePolicies" json:"webpImagePolicies"` // clusterId => *WebPImagePolicy
// UAM相关配置 // UAM相关配置
UAMPolicies map[int64]*UAMPolicy `yaml:"uamPolicies" yaml:"uamPolicies" json:"uamPolicies"` // clusterId => *UAMPolicy UAMPolicies map[int64]*UAMPolicy `yaml:"uamPolicies" json:"uamPolicies"` // clusterId => *UAMPolicy
// CC相关配置
HTTPCCPolicies map[int64]*HTTPCCPolicy `yaml:"httpCCPolicies" json:"httpCCPolicies"` // clusterId => *HTTPCCPolicy
// 自定义页面
HTTPPagesPolicies map[int64]*HTTPPagesPolicy `yaml:"httpPagesPolicies" json:"httpPagesPolicies"` // clusterId => *HTTPPagesPolicy
// DNS // DNS
DNSResolver *DNSResolverConfig `yaml:"dnsResolver" json:"dnsResolver"` DNSResolver *DNSResolverConfig `yaml:"dnsResolver" json:"dnsResolver"`
@@ -196,6 +204,12 @@ func CloneNodeConfig(nodeConfig *NodeConfig) (*NodeConfig, error) {
uamPolicyLocker.RLock() uamPolicyLocker.RLock()
defer uamPolicyLocker.RUnlock() defer uamPolicyLocker.RUnlock()
httpCCPolicyLocker.RLock()
defer httpCCPolicyLocker.RUnlock()
httpPagesPolicyLocker.RLock()
defer httpPagesPolicyLocker.RUnlock()
var newConfigValue = reflect.Indirect(reflect.ValueOf(&NodeConfig{})) var newConfigValue = reflect.Indirect(reflect.ValueOf(&NodeConfig{}))
var oldValue = reflect.Indirect(reflect.ValueOf(nodeConfig)) var oldValue = reflect.Indirect(reflect.ValueOf(nodeConfig))
var valueType = oldValue.Type() var valueType = oldValue.Type()
@@ -381,7 +395,7 @@ func (this *NodeConfig) Init(ctx context.Context) (err error, serverErrors []*Se
// uam policy // uam policy
uamPolicyLocker.RLock() uamPolicyLocker.RLock()
if this.UAMPolicies != nil { if len(this.UAMPolicies) > 0 {
for _, policy := range this.UAMPolicies { for _, policy := range this.UAMPolicies {
err = policy.Init() err = policy.Init()
if err != nil { if err != nil {
@@ -392,6 +406,32 @@ func (this *NodeConfig) Init(ctx context.Context) (err error, serverErrors []*Se
} }
uamPolicyLocker.RUnlock() uamPolicyLocker.RUnlock()
// http cc policy
httpCCPolicyLocker.RLock()
if len(this.HTTPCCPolicies) > 0 {
for _, policy := range this.HTTPCCPolicies {
err = policy.Init()
if err != nil {
httpCCPolicyLocker.RUnlock()
return
}
}
}
httpCCPolicyLocker.RUnlock()
// http pages policy
httpPagesPolicyLocker.RLock()
if len(this.HTTPPagesPolicies) > 0 {
for _, policy := range this.HTTPPagesPolicies {
err = policy.Init()
if err != nil {
httpPagesPolicyLocker.RUnlock()
return
}
}
}
httpPagesPolicyLocker.RUnlock()
// dns resolver // dns resolver
if this.DNSResolver != nil { if this.DNSResolver != nil {
err = this.DNSResolver.Init() err = this.DNSResolver.Init()
@@ -632,6 +672,40 @@ func (this *NodeConfig) UpdateUAMPolicies(policies map[int64]*UAMPolicy) {
this.UAMPolicies = policies this.UAMPolicies = policies
} }
// FindHTTPCCPolicyWithClusterId 使用集群ID查找CC策略
func (this *NodeConfig) FindHTTPCCPolicyWithClusterId(clusterId int64) *HTTPCCPolicy {
httpCCPolicyLocker.RLock()
defer httpCCPolicyLocker.RUnlock()
if this.HTTPCCPolicies == nil {
return nil
}
return this.HTTPCCPolicies[clusterId]
}
// UpdateHTTPCCPolicies 修改集群CC策略
func (this *NodeConfig) UpdateHTTPCCPolicies(policies map[int64]*HTTPCCPolicy) {
httpCCPolicyLocker.Lock()
defer httpCCPolicyLocker.Unlock()
this.HTTPCCPolicies = policies
}
// UpdateHTTPPagesPolicies 修改集群自定义页面策略
func (this *NodeConfig) UpdateHTTPPagesPolicies(policies map[int64]*HTTPPagesPolicy) {
httpPagesPolicyLocker.Lock()
defer httpPagesPolicyLocker.Unlock()
this.HTTPPagesPolicies = policies
}
// FindHTTPPagesPolicyWithClusterId 使用集群ID查找自定义页面策略
func (this *NodeConfig) FindHTTPPagesPolicyWithClusterId(clusterId int64) *HTTPPagesPolicy {
httpPagesPolicyLocker.RLock()
defer httpPagesPolicyLocker.RUnlock()
if this.HTTPPagesPolicies == nil {
return nil
}
return this.HTTPPagesPolicies[clusterId]
}
// SecretHash 对Id和Secret的Hash计算 // SecretHash 对Id和Secret的Hash计算
func (this *NodeConfig) SecretHash() string { func (this *NodeConfig) SecretHash() string {
return this.secretHash return this.secretHash
+5 -2
View File
@@ -13,8 +13,11 @@ const (
NodeValueItemCPU NodeValueItem = "cpu" // CPU NodeValueItemCPU NodeValueItem = "cpu" // CPU
NodeValueItemMemory NodeValueItem = "memory" // 内存 NodeValueItemMemory NodeValueItem = "memory" // 内存
NodeValueItemLoad NodeValueItem = "load" // 负载 NodeValueItemLoad NodeValueItem = "load" // 负载
NodeValueItemTrafficIn NodeValueItem = "trafficIn" // 上行流量
NodeValueItemTrafficOut NodeValueItem = "trafficOut" // 行流量 NodeValueItemTrafficIn NodeValueItem = "trafficIn" // 业务上行流量
NodeValueItemTrafficOut NodeValueItem = "trafficOut" // 业务下行流量
NodeValueItemAllTraffic NodeValueItem = "allTraffic" // 所有流量
NodeValueItemConnections NodeValueItem = "connections" // 连接数 NodeValueItemConnections NodeValueItem = "connections" // 连接数
NodeValueItemRequests NodeValueItem = "requests" // 请求访问量 NodeValueItemRequests NodeValueItem = "requests" // 请求访问量
NodeValueItemAttackRequests NodeValueItem = "attackRequests" // 攻击请求访问量 NodeValueItemAttackRequests NodeValueItem = "attackRequests" // 攻击请求访问量
+68 -36
View File
@@ -54,6 +54,9 @@ type Node struct {
LnAddrs []string `protobuf:"bytes,21,rep,name=lnAddrs,proto3" json:"lnAddrs,omitempty"` // Ln访问地址 LnAddrs []string `protobuf:"bytes,21,rep,name=lnAddrs,proto3" json:"lnAddrs,omitempty"` // Ln访问地址
EnableIPLists bool `protobuf:"varint,22,opt,name=enableIPLists,proto3" json:"enableIPLists,omitempty"` EnableIPLists bool `protobuf:"varint,22,opt,name=enableIPLists,proto3" json:"enableIPLists,omitempty"`
ApiNodeAddrsJSON []byte `protobuf:"bytes,24,opt,name=apiNodeAddrsJSON,proto3" json:"apiNodeAddrsJSON,omitempty"` ApiNodeAddrsJSON []byte `protobuf:"bytes,24,opt,name=apiNodeAddrsJSON,proto3" json:"apiNodeAddrsJSON,omitempty"`
OfflineDay string `protobuf:"bytes,25,opt,name=offlineDay,proto3" json:"offlineDay,omitempty"` // 下线日期
IsBackupForCluster bool `protobuf:"varint,26,opt,name=isBackupForCluster,proto3" json:"isBackupForCluster,omitempty"` // 是否为集群备用节点
IsBackupForGroup bool `protobuf:"varint,27,opt,name=isBackupForGroup,proto3" json:"isBackupForGroup,omitempty"` // 是否为分组备用节点
NodeCluster *NodeCluster `protobuf:"bytes,32,opt,name=nodeCluster,proto3" json:"nodeCluster,omitempty"` // 主集群 NodeCluster *NodeCluster `protobuf:"bytes,32,opt,name=nodeCluster,proto3" json:"nodeCluster,omitempty"` // 主集群
NodeLogin *NodeLogin `protobuf:"bytes,33,opt,name=nodeLogin,proto3" json:"nodeLogin,omitempty"` NodeLogin *NodeLogin `protobuf:"bytes,33,opt,name=nodeLogin,proto3" json:"nodeLogin,omitempty"`
InstallStatus *NodeInstallStatus `protobuf:"bytes,34,opt,name=installStatus,proto3" json:"installStatus,omitempty"` InstallStatus *NodeInstallStatus `protobuf:"bytes,34,opt,name=installStatus,proto3" json:"installStatus,omitempty"`
@@ -263,6 +266,27 @@ func (x *Node) GetApiNodeAddrsJSON() []byte {
return nil return nil
} }
func (x *Node) GetOfflineDay() string {
if x != nil {
return x.OfflineDay
}
return ""
}
func (x *Node) GetIsBackupForCluster() bool {
if x != nil {
return x.IsBackupForCluster
}
return false
}
func (x *Node) GetIsBackupForGroup() bool {
if x != nil {
return x.IsBackupForGroup
}
return false
}
func (x *Node) GetNodeCluster() *NodeCluster { func (x *Node) GetNodeCluster() *NodeCluster {
if x != nil { if x != nil {
return x.NodeCluster return x.NodeCluster
@@ -420,7 +444,7 @@ var file_models_model_node_proto_rawDesc = []byte{
0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x64, 0x6e, 0x73, 0x5f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x64, 0x6e, 0x73, 0x5f, 0x72, 0x6f, 0x75, 0x74, 0x65,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d,
0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x5f, 0x63, 0x61, 0x70, 0x61, 0x63, 0x69, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x5f, 0x63, 0x61, 0x70, 0x61, 0x63, 0x69,
0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xae, 0x09, 0x0a, 0x04, 0x4e, 0x6f, 0x64, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xaa, 0x0a, 0x0a, 0x04, 0x4e, 0x6f, 0x64,
0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69,
0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x4a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x4a,
@@ -472,41 +496,49 @@ var file_models_model_node_proto_rawDesc = []byte{
0x49, 0x50, 0x4c, 0x69, 0x73, 0x74, 0x73, 0x12, 0x2a, 0x0a, 0x10, 0x61, 0x70, 0x69, 0x4e, 0x6f, 0x49, 0x50, 0x4c, 0x69, 0x73, 0x74, 0x73, 0x12, 0x2a, 0x0a, 0x10, 0x61, 0x70, 0x69, 0x4e, 0x6f,
0x64, 0x65, 0x41, 0x64, 0x64, 0x72, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x18, 0x20, 0x01, 0x28, 0x64, 0x65, 0x41, 0x64, 0x64, 0x72, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x18, 0x20, 0x01, 0x28,
0x0c, 0x52, 0x10, 0x61, 0x70, 0x69, 0x4e, 0x6f, 0x64, 0x65, 0x41, 0x64, 0x64, 0x72, 0x73, 0x4a, 0x0c, 0x52, 0x10, 0x61, 0x70, 0x69, 0x4e, 0x6f, 0x64, 0x65, 0x41, 0x64, 0x64, 0x72, 0x73, 0x4a,
0x53, 0x4f, 0x4e, 0x12, 0x31, 0x0a, 0x0b, 0x6e, 0x6f, 0x64, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x53, 0x4f, 0x4e, 0x12, 0x1e, 0x0a, 0x0a, 0x6f, 0x66, 0x66, 0x6c, 0x69, 0x6e, 0x65, 0x44, 0x61,
0x65, 0x72, 0x18, 0x20, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x79, 0x18, 0x19, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6f, 0x66, 0x66, 0x6c, 0x69, 0x6e, 0x65,
0x64, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x0b, 0x6e, 0x6f, 0x64, 0x65, 0x43, 0x44, 0x61, 0x79, 0x12, 0x2e, 0x0a, 0x12, 0x69, 0x73, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x46,
0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x2b, 0x0a, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x4c, 0x6f, 0x6f, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x1a, 0x20, 0x01, 0x28, 0x08, 0x52,
0x67, 0x69, 0x6e, 0x18, 0x21, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x12, 0x69, 0x73, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x46, 0x6f, 0x72, 0x43, 0x6c, 0x75, 0x73,
0x6f, 0x64, 0x65, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x4c, 0x6f, 0x74, 0x65, 0x72, 0x12, 0x2a, 0x0a, 0x10, 0x69, 0x73, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x46,
0x67, 0x69, 0x6e, 0x12, 0x3b, 0x0a, 0x0d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x53, 0x74, 0x6f, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x1b, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x69,
0x61, 0x74, 0x75, 0x73, 0x18, 0x22, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x62, 0x2e, 0x73, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x46, 0x6f, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12,
0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x31, 0x0a, 0x0b, 0x6e, 0x6f, 0x64, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x20,
0x73, 0x52, 0x0d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x43, 0x6c,
0x12, 0x33, 0x0a, 0x0b, 0x69, 0x70, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x0b, 0x6e, 0x6f, 0x64, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74,
0x23, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x65, 0x72, 0x12, 0x2b, 0x0a, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x18,
0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x0b, 0x69, 0x70, 0x41, 0x64, 0x64, 0x72, 0x21, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x4c,
0x65, 0x73, 0x73, 0x65, 0x73, 0x12, 0x2b, 0x0a, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x6f, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x12,
0x75, 0x70, 0x18, 0x24, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x3b, 0x0a, 0x0d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73,
0x64, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x6f, 0x18, 0x22, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x64, 0x65,
0x75, 0x70, 0x12, 0x2e, 0x0a, 0x0a, 0x6e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x0d, 0x69,
0x18, 0x25, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x33, 0x0a, 0x0b,
0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x6e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x69, 0x70, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, 0x23, 0x20, 0x03, 0x28,
0x6f, 0x6e, 0x12, 0x45, 0x0a, 0x15, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x61, 0x72, 0x79, 0x4e, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64,
0x6f, 0x64, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x18, 0x26, 0x20, 0x03, 0x28, 0x72, 0x65, 0x73, 0x73, 0x52, 0x0b, 0x69, 0x70, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65,
0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x73, 0x12, 0x2b, 0x0a, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x24,
0x65, 0x72, 0x52, 0x15, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x61, 0x72, 0x79, 0x4e, 0x6f, 0x64, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x47, 0x72,
0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x22, 0xa0, 0x01, 0x0a, 0x09, 0x42, 0x61, 0x6f, 0x75, 0x70, 0x52, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x2e,
0x73, 0x69, 0x63, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x0a, 0x0a, 0x6e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x18, 0x25, 0x20, 0x01,
0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69,
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x6e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x45,
0x73, 0x4f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x12, 0x0a, 0x15, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x61, 0x72, 0x79, 0x4e, 0x6f, 0x64, 0x65, 0x43,
0x12, 0x0a, 0x04, 0x69, 0x73, 0x55, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x69, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x18, 0x26, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e,
0x73, 0x55, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x15,
0x28, 0x05, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x31, 0x0a, 0x0b, 0x6e, 0x6f, 0x64, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x61, 0x72, 0x79, 0x4e, 0x6f, 0x64, 0x65, 0x43, 0x6c, 0x75,
0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x73, 0x74, 0x65, 0x72, 0x73, 0x22, 0xa0, 0x01, 0x0a, 0x09, 0x42, 0x61, 0x73, 0x69, 0x63, 0x4e,
0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x6f, 0x64, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
0x0b, 0x6e, 0x6f, 0x64, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x42, 0x06, 0x5a, 0x04, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x18,
0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x69,
0x73, 0x55, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x69, 0x73, 0x55, 0x70, 0x12,
0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05,
0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x31, 0x0a, 0x0b, 0x6e, 0x6f, 0x64, 0x65, 0x43, 0x6c, 0x75,
0x73, 0x74, 0x65, 0x72, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x62, 0x2e,
0x4e, 0x6f, 0x64, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x0b, 0x6e, 0x6f, 0x64,
0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62,
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
} }
var ( var (
+206
View File
@@ -0,0 +1,206 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.19.4
// source: models/model_node_action.proto
package pb
import (
proto "github.com/golang/protobuf/proto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
// 节点动作
type NodeAction struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
NodeId int64 `protobuf:"varint,2,opt,name=nodeId,proto3" json:"nodeId,omitempty"`
Role string `protobuf:"bytes,3,opt,name=role,proto3" json:"role,omitempty"`
IsOn bool `protobuf:"varint,4,opt,name=isOn,proto3" json:"isOn,omitempty"` // 是否启用
CondsJSON []byte `protobuf:"bytes,5,opt,name=condsJSON,proto3" json:"condsJSON,omitempty"` // 条件定义
ActionJSON []byte `protobuf:"bytes,6,opt,name=actionJSON,proto3" json:"actionJSON,omitempty"` // 动作定义
DurationJSON []byte `protobuf:"bytes,7,opt,name=durationJSON,proto3" json:"durationJSON,omitempty"` // 持续时间
}
func (x *NodeAction) Reset() {
*x = NodeAction{}
if protoimpl.UnsafeEnabled {
mi := &file_models_model_node_action_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *NodeAction) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NodeAction) ProtoMessage() {}
func (x *NodeAction) ProtoReflect() protoreflect.Message {
mi := &file_models_model_node_action_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use NodeAction.ProtoReflect.Descriptor instead.
func (*NodeAction) Descriptor() ([]byte, []int) {
return file_models_model_node_action_proto_rawDescGZIP(), []int{0}
}
func (x *NodeAction) GetId() int64 {
if x != nil {
return x.Id
}
return 0
}
func (x *NodeAction) GetNodeId() int64 {
if x != nil {
return x.NodeId
}
return 0
}
func (x *NodeAction) GetRole() string {
if x != nil {
return x.Role
}
return ""
}
func (x *NodeAction) GetIsOn() bool {
if x != nil {
return x.IsOn
}
return false
}
func (x *NodeAction) GetCondsJSON() []byte {
if x != nil {
return x.CondsJSON
}
return nil
}
func (x *NodeAction) GetActionJSON() []byte {
if x != nil {
return x.ActionJSON
}
return nil
}
func (x *NodeAction) GetDurationJSON() []byte {
if x != nil {
return x.DurationJSON
}
return nil
}
var File_models_model_node_action_proto protoreflect.FileDescriptor
var file_models_model_node_action_proto_rawDesc = []byte{
0x0a, 0x1e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x6e,
0x6f, 0x64, 0x65, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x12, 0x02, 0x70, 0x62, 0x22, 0xbe, 0x01, 0x0a, 0x0a, 0x4e, 0x6f, 0x64, 0x65, 0x41, 0x63, 0x74,
0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x18, 0x02, 0x20,
0x01, 0x28, 0x03, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x72,
0x6f, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12,
0x12, 0x0a, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x69,
0x73, 0x4f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x4a, 0x53, 0x4f, 0x4e,
0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x4a, 0x53, 0x4f,
0x4e, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4a, 0x53, 0x4f, 0x4e, 0x18,
0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4a, 0x53, 0x4f,
0x4e, 0x12, 0x22, 0x0a, 0x0c, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4a, 0x53, 0x4f,
0x4e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f,
0x6e, 0x4a, 0x53, 0x4f, 0x4e, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_models_model_node_action_proto_rawDescOnce sync.Once
file_models_model_node_action_proto_rawDescData = file_models_model_node_action_proto_rawDesc
)
func file_models_model_node_action_proto_rawDescGZIP() []byte {
file_models_model_node_action_proto_rawDescOnce.Do(func() {
file_models_model_node_action_proto_rawDescData = protoimpl.X.CompressGZIP(file_models_model_node_action_proto_rawDescData)
})
return file_models_model_node_action_proto_rawDescData
}
var file_models_model_node_action_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_models_model_node_action_proto_goTypes = []interface{}{
(*NodeAction)(nil), // 0: pb.NodeAction
}
var file_models_model_node_action_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_models_model_node_action_proto_init() }
func file_models_model_node_action_proto_init() {
if File_models_model_node_action_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_models_model_node_action_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*NodeAction); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_models_model_node_action_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_models_model_node_action_proto_goTypes,
DependencyIndexes: file_models_model_node_action_proto_depIdxs,
MessageInfos: file_models_model_node_action_proto_msgTypes,
}.Build()
File_models_model_node_action_proto = out.File
file_models_model_node_action_proto_rawDesc = nil
file_models_model_node_action_proto_goTypes = nil
file_models_model_node_action_proto_depIdxs = nil
}
+22 -11
View File
@@ -41,6 +41,7 @@ type NSDomain struct {
NsDomainGroupIds []int64 `protobuf:"varint,8,rep,packed,name=nsDomainGroupIds,proto3" json:"nsDomainGroupIds,omitempty"` NsDomainGroupIds []int64 `protobuf:"varint,8,rep,packed,name=nsDomainGroupIds,proto3" json:"nsDomainGroupIds,omitempty"`
Status string `protobuf:"bytes,9,opt,name=status,proto3" json:"status,omitempty"` Status string `protobuf:"bytes,9,opt,name=status,proto3" json:"status,omitempty"`
UserId int64 `protobuf:"varint,10,opt,name=userId,proto3" json:"userId,omitempty"` // 用户ID UserId int64 `protobuf:"varint,10,opt,name=userId,proto3" json:"userId,omitempty"` // 用户ID
RecordsHealthCheckJSON []byte `protobuf:"bytes,11,opt,name=recordsHealthCheckJSON,proto3" json:"recordsHealthCheckJSON,omitempty"` // 健康检查设置
NsCluster *NSCluster `protobuf:"bytes,30,opt,name=nsCluster,proto3" json:"nsCluster,omitempty"` NsCluster *NSCluster `protobuf:"bytes,30,opt,name=nsCluster,proto3" json:"nsCluster,omitempty"`
User *User `protobuf:"bytes,31,opt,name=user,proto3" json:"user,omitempty"` User *User `protobuf:"bytes,31,opt,name=user,proto3" json:"user,omitempty"`
NsDomainGroups []*NSDomainGroup `protobuf:"bytes,32,rep,name=nsDomainGroups,proto3" json:"nsDomainGroups,omitempty"` NsDomainGroups []*NSDomainGroup `protobuf:"bytes,32,rep,name=nsDomainGroups,proto3" json:"nsDomainGroups,omitempty"`
@@ -148,6 +149,13 @@ func (x *NSDomain) GetUserId() int64 {
return 0 return 0
} }
func (x *NSDomain) GetRecordsHealthCheckJSON() []byte {
if x != nil {
return x.RecordsHealthCheckJSON
}
return nil
}
func (x *NSDomain) GetNsCluster() *NSCluster { func (x *NSDomain) GetNsCluster() *NSCluster {
if x != nil { if x != nil {
return x.NsCluster return x.NsCluster
@@ -179,7 +187,7 @@ var file_models_model_ns_domain_proto_rawDesc = []byte{
0x6f, 0x1a, 0x22, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x6f, 0x1a, 0x22, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f,
0x6e, 0x73, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x6e, 0x73, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f,
0x64, 0x65, 0x6c, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x96, 0x64, 0x65, 0x6c, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xce,
0x03, 0x0a, 0x08, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x03, 0x0a, 0x08, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69,
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e,
0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12,
@@ -197,16 +205,19 @@ var file_models_model_ns_domain_proto_rawDesc = []byte{
0x73, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28,
0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65,
0x72, 0x49, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x72, 0x49, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49,
0x64, 0x12, 0x2b, 0x0a, 0x09, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x1e, 0x64, 0x12, 0x36, 0x0a, 0x16, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x48, 0x65, 0x61, 0x6c,
0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x0b, 0x20, 0x01, 0x28,
0x74, 0x65, 0x72, 0x52, 0x09, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x1c, 0x0c, 0x52, 0x16, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68,
0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x1f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x70, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x4a, 0x53, 0x4f, 0x4e, 0x12, 0x2b, 0x0a, 0x09, 0x6e, 0x73, 0x43,
0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x39, 0x0a, 0x0e, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x70,
0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x18, 0x20, 0x62, 0x2e, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x09, 0x6e, 0x73, 0x43,
0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x1c, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x1f,
0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x0e, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04,
0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x75, 0x73, 0x65, 0x72, 0x12, 0x39, 0x0a, 0x0e, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e,
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x18, 0x20, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70,
0x62, 0x2e, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52,
0x0e, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x42,
0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
} }
var ( var (
+38 -18
View File
@@ -31,25 +31,27 @@ type NSRecord struct {
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 记录ID
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // 备注
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // 记录名
Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` // 记录类型
Value string `protobuf:"bytes,5,opt,name=value,proto3" json:"value,omitempty"` Value string `protobuf:"bytes,5,opt,name=value,proto3" json:"value,omitempty"` // 记录值
MxPriority int32 `protobuf:"varint,12,opt,name=mxPriority,proto3" json:"mxPriority,omitempty"` // mx优先级 MxPriority int32 `protobuf:"varint,12,opt,name=mxPriority,proto3" json:"mxPriority,omitempty"` // mx优先级
SrvPriority int32 `protobuf:"varint,13,opt,name=srvPriority,proto3" json:"srvPriority,omitempty"` // SRV优先级 SrvPriority int32 `protobuf:"varint,13,opt,name=srvPriority,proto3" json:"srvPriority,omitempty"` // SRV优先级
SrvWeight int32 `protobuf:"varint,14,opt,name=srvWeight,proto3" json:"srvWeight,omitempty"` // SRV权重 SrvWeight int32 `protobuf:"varint,14,opt,name=srvWeight,proto3" json:"srvWeight,omitempty"` // SRV权重
SrvPort int32 `protobuf:"varint,15,opt,name=srvPort,proto3" json:"srvPort,omitempty"` // SRV端口 SrvPort int32 `protobuf:"varint,15,opt,name=srvPort,proto3" json:"srvPort,omitempty"` // SRV端口
CaaFlag int32 `protobuf:"varint,16,opt,name=caaFlag,proto3" json:"caaFlag,omitempty"` // CAA Flag CaaFlag int32 `protobuf:"varint,16,opt,name=caaFlag,proto3" json:"caaFlag,omitempty"` // CAA Flag
CaaTag string `protobuf:"bytes,17,opt,name=caaTag,proto3" json:"caaTag,omitempty"` // CAA TAG CaaTag string `protobuf:"bytes,17,opt,name=caaTag,proto3" json:"caaTag,omitempty"` // CAA TAG
Ttl int32 `protobuf:"varint,6,opt,name=ttl,proto3" json:"ttl,omitempty"` Ttl int32 `protobuf:"varint,6,opt,name=ttl,proto3" json:"ttl,omitempty"` // TTL
Weight int32 `protobuf:"varint,7,opt,name=weight,proto3" json:"weight,omitempty"` Weight int32 `protobuf:"varint,7,opt,name=weight,proto3" json:"weight,omitempty"` // 权重
CreatedAt int64 `protobuf:"varint,8,opt,name=createdAt,proto3" json:"createdAt,omitempty"` CreatedAt int64 `protobuf:"varint,8,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
IsDeleted bool `protobuf:"varint,9,opt,name=isDeleted,proto3" json:"isDeleted,omitempty"` IsDeleted bool `protobuf:"varint,9,opt,name=isDeleted,proto3" json:"isDeleted,omitempty"`
Version int64 `protobuf:"varint,10,opt,name=version,proto3" json:"version,omitempty"` Version int64 `protobuf:"varint,10,opt,name=version,proto3" json:"version,omitempty"`
IsOn bool `protobuf:"varint,11,opt,name=isOn,proto3" json:"isOn,omitempty"` IsOn bool `protobuf:"varint,11,opt,name=isOn,proto3" json:"isOn,omitempty"` // 是否启用
NsDomain *NSDomain `protobuf:"bytes,30,opt,name=nsDomain,proto3" json:"nsDomain,omitempty"` HealthCheckJSON []byte `protobuf:"bytes,18,opt,name=healthCheckJSON,proto3" json:"healthCheckJSON,omitempty"` // 健康检查配置
NsRoutes []*NSRoute `protobuf:"bytes,31,rep,name=nsRoutes,proto3" json:"nsRoutes,omitempty"` IsUp bool `protobuf:"varint,19,opt,name=isUp,proto3" json:"isUp,omitempty"` // 是否在线(根据健康检查结果)
NsDomain *NSDomain `protobuf:"bytes,30,opt,name=nsDomain,proto3" json:"nsDomain,omitempty"` // 所属域名
NsRoutes []*NSRoute `protobuf:"bytes,31,rep,name=nsRoutes,proto3" json:"nsRoutes,omitempty"` // 线路
} }
func (x *NSRecord) Reset() { func (x *NSRecord) Reset() {
@@ -203,6 +205,20 @@ func (x *NSRecord) GetIsOn() bool {
return false return false
} }
func (x *NSRecord) GetHealthCheckJSON() []byte {
if x != nil {
return x.HealthCheckJSON
}
return nil
}
func (x *NSRecord) GetIsUp() bool {
if x != nil {
return x.IsUp
}
return false
}
func (x *NSRecord) GetNsDomain() *NSDomain { func (x *NSRecord) GetNsDomain() *NSDomain {
if x != nil { if x != nil {
return x.NsDomain return x.NsDomain
@@ -225,7 +241,7 @@ var file_models_model_ns_record_proto_rawDesc = []byte{
0x70, 0x62, 0x1a, 0x1c, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x70, 0x62, 0x1a, 0x1c, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c,
0x5f, 0x6e, 0x73, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x6e, 0x73, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x1a, 0x1b, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x6e, 0x1a, 0x1b, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x6e,
0x73, 0x5f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8d, 0x04, 0x73, 0x5f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xcb, 0x04,
0x0a, 0x08, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x0a, 0x08, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64,
0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65,
0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
@@ -253,13 +269,17 @@ var file_models_model_ns_record_proto_rawDesc = []byte{
0x08, 0x52, 0x09, 0x69, 0x73, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x08, 0x52, 0x09, 0x69, 0x73, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x12, 0x18, 0x0a, 0x07,
0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x76, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x76,
0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x18, 0x0b, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x18, 0x0b,
0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x12, 0x28, 0x0a, 0x08, 0x6e, 0x73, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x12, 0x28, 0x0a, 0x0f, 0x68, 0x65,
0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x12, 0x20,
0x62, 0x2e, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x08, 0x6e, 0x73, 0x44, 0x6f, 0x01, 0x28, 0x0c, 0x52, 0x0f, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b,
0x6d, 0x61, 0x69, 0x6e, 0x12, 0x27, 0x0a, 0x08, 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x73, 0x55, 0x70, 0x18, 0x13, 0x20, 0x01,
0x18, 0x1f, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x52, 0x6f, 0x28, 0x08, 0x52, 0x04, 0x69, 0x73, 0x55, 0x70, 0x12, 0x28, 0x0a, 0x08, 0x6e, 0x73, 0x44, 0x6f,
0x75, 0x74, 0x65, 0x52, 0x08, 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x42, 0x06, 0x5a, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x62, 0x2e,
0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x08, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61,
0x69, 0x6e, 0x12, 0x27, 0x0a, 0x08, 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x18, 0x1f,
0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74,
0x65, 0x52, 0x08, 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e,
0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
} }
var ( var (
+212 -39
View File
@@ -439,6 +439,100 @@ func (x *CheckAuthorityResponse) GetEdition() string {
return "" return ""
} }
// 查询授权容量
type FindAuthorityQuotaRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *FindAuthorityQuotaRequest) Reset() {
*x = FindAuthorityQuotaRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_authority_key_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindAuthorityQuotaRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindAuthorityQuotaRequest) ProtoMessage() {}
func (x *FindAuthorityQuotaRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_authority_key_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FindAuthorityQuotaRequest.ProtoReflect.Descriptor instead.
func (*FindAuthorityQuotaRequest) Descriptor() ([]byte, []int) {
return file_service_authority_key_proto_rawDescGZIP(), []int{8}
}
type FindAuthorityQuotaResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
MaxNodes int32 `protobuf:"varint,1,opt,name=maxNodes,proto3" json:"maxNodes,omitempty"` // 节点数限制
CountNodes int32 `protobuf:"varint,2,opt,name=countNodes,proto3" json:"countNodes,omitempty"` // 已占用节点数
}
func (x *FindAuthorityQuotaResponse) Reset() {
*x = FindAuthorityQuotaResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_authority_key_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindAuthorityQuotaResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindAuthorityQuotaResponse) ProtoMessage() {}
func (x *FindAuthorityQuotaResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_authority_key_proto_msgTypes[9]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FindAuthorityQuotaResponse.ProtoReflect.Descriptor instead.
func (*FindAuthorityQuotaResponse) Descriptor() ([]byte, []int) {
return file_service_authority_key_proto_rawDescGZIP(), []int{9}
}
func (x *FindAuthorityQuotaResponse) GetMaxNodes() int32 {
if x != nil {
return x.MaxNodes
}
return 0
}
func (x *FindAuthorityQuotaResponse) GetCountNodes() int32 {
if x != nil {
return x.CountNodes
}
return 0
}
var File_service_authority_key_proto protoreflect.FileDescriptor var File_service_authority_key_proto protoreflect.FileDescriptor
var file_service_authority_key_proto_rawDesc = []byte{ var file_service_authority_key_proto_rawDesc = []byte{
@@ -482,33 +576,46 @@ var file_service_authority_key_proto_rawDesc = []byte{
0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x73, 0x50, 0x6c, 0x75, 0x73, 0x18, 0x01, 0x20, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x73, 0x50, 0x6c, 0x75, 0x73, 0x18, 0x01, 0x20,
0x01, 0x28, 0x08, 0x52, 0x06, 0x69, 0x73, 0x50, 0x6c, 0x75, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x01, 0x28, 0x08, 0x52, 0x06, 0x69, 0x73, 0x50, 0x6c, 0x75, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x65,
0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x65, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x65, 0x64,
0x69, 0x74, 0x69, 0x6f, 0x6e, 0x32, 0x90, 0x03, 0x0a, 0x13, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x1b, 0x0a, 0x19, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x75, 0x74,
0x69, 0x74, 0x79, 0x4b, 0x65, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x43, 0x0a, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65,
0x12, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x73, 0x74, 0x22, 0x58, 0x0a, 0x1a, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72,
0x4b, 0x65, 0x79, 0x12, 0x1d, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x69, 0x74, 0x79, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x61, 0x78, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01,
0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x28, 0x05, 0x52, 0x08, 0x6d, 0x61, 0x78, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x1e, 0x0a, 0x0a,
0x73, 0x73, 0x12, 0x4d, 0x0a, 0x10, 0x72, 0x65, 0x61, 0x64, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05,
0x69, 0x74, 0x79, 0x4b, 0x65, 0x79, 0x12, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x52, 0x0a, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x32, 0xe5, 0x03, 0x0a,
0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x13, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x4b, 0x65, 0x79, 0x53, 0x65, 0x72,
0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x41, 0x75, 0x74, 0x76, 0x69, 0x63, 0x65, 0x12, 0x43, 0x0a, 0x12, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x75,
0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x4b, 0x65, 0x79, 0x12, 0x1d, 0x2e, 0x70, 0x62, 0x2e,
0x65, 0x12, 0x41, 0x0a, 0x11, 0x72, 0x65, 0x73, 0x65, 0x74, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x4b,
0x69, 0x74, 0x79, 0x4b, 0x65, 0x79, 0x12, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x73, 0x65, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52,
0x74, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x4d, 0x0a, 0x10, 0x72, 0x65, 0x61,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x64, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x4b, 0x65, 0x79, 0x12, 0x1b, 0x2e,
0x63, 0x65, 0x73, 0x73, 0x12, 0x59, 0x0a, 0x14, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79,
0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x4b, 0x65, 0x79, 0x12, 0x1f, 0x2e, 0x70, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x70, 0x62, 0x2e,
0x62, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x52, 0x65, 0x61, 0x64, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x4b, 0x65, 0x79,
0x69, 0x74, 0x79, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x41, 0x0a, 0x11, 0x72, 0x65, 0x73, 0x65,
0x70, 0x62, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x74, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x4b, 0x65, 0x79, 0x12, 0x1c, 0x2e,
0x72, 0x69, 0x74, 0x79, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x73, 0x65, 0x74, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74,
0x47, 0x0a, 0x0e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62,
0x79, 0x12, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x41, 0x75, 0x74, 0x68, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x59, 0x0a, 0x14, 0x76,
0x6f, 0x72, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x70, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79,
0x62, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x4b, 0x65, 0x79, 0x12, 0x1f, 0x2e, 0x70, 0x62, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71,
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x70, 0x62, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61,
0x74, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x4b, 0x65, 0x79, 0x52, 0x65,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47, 0x0a, 0x0e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x41,
0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x68,
0x65, 0x63, 0x6b, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x41, 0x75,
0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
0x53, 0x0a, 0x12, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79,
0x51, 0x75, 0x6f, 0x74, 0x61, 0x12, 0x1d, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41,
0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x75,
0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x33,
} }
var ( var (
@@ -523,7 +630,7 @@ func file_service_authority_key_proto_rawDescGZIP() []byte {
return file_service_authority_key_proto_rawDescData return file_service_authority_key_proto_rawDescData
} }
var file_service_authority_key_proto_msgTypes = make([]protoimpl.MessageInfo, 8) var file_service_authority_key_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
var file_service_authority_key_proto_goTypes = []interface{}{ var file_service_authority_key_proto_goTypes = []interface{}{
(*UpdateAuthorityKeyRequest)(nil), // 0: pb.UpdateAuthorityKeyRequest (*UpdateAuthorityKeyRequest)(nil), // 0: pb.UpdateAuthorityKeyRequest
(*ReadAuthorityKeyRequest)(nil), // 1: pb.ReadAuthorityKeyRequest (*ReadAuthorityKeyRequest)(nil), // 1: pb.ReadAuthorityKeyRequest
@@ -533,23 +640,27 @@ var file_service_authority_key_proto_goTypes = []interface{}{
(*ValidateAuthorityKeyResponse)(nil), // 5: pb.ValidateAuthorityKeyResponse (*ValidateAuthorityKeyResponse)(nil), // 5: pb.ValidateAuthorityKeyResponse
(*CheckAuthorityRequest)(nil), // 6: pb.CheckAuthorityRequest (*CheckAuthorityRequest)(nil), // 6: pb.CheckAuthorityRequest
(*CheckAuthorityResponse)(nil), // 7: pb.CheckAuthorityResponse (*CheckAuthorityResponse)(nil), // 7: pb.CheckAuthorityResponse
(*AuthorityKey)(nil), // 8: pb.AuthorityKey (*FindAuthorityQuotaRequest)(nil), // 8: pb.FindAuthorityQuotaRequest
(*RPCSuccess)(nil), // 9: pb.RPCSuccess (*FindAuthorityQuotaResponse)(nil), // 9: pb.FindAuthorityQuotaResponse
(*AuthorityKey)(nil), // 10: pb.AuthorityKey
(*RPCSuccess)(nil), // 11: pb.RPCSuccess
} }
var file_service_authority_key_proto_depIdxs = []int32{ var file_service_authority_key_proto_depIdxs = []int32{
8, // 0: pb.ReadAuthorityKeyResponse.authorityKey:type_name -> pb.AuthorityKey 10, // 0: pb.ReadAuthorityKeyResponse.authorityKey:type_name -> pb.AuthorityKey
0, // 1: pb.AuthorityKeyService.updateAuthorityKey:input_type -> pb.UpdateAuthorityKeyRequest 0, // 1: pb.AuthorityKeyService.updateAuthorityKey:input_type -> pb.UpdateAuthorityKeyRequest
1, // 2: pb.AuthorityKeyService.readAuthorityKey:input_type -> pb.ReadAuthorityKeyRequest 1, // 2: pb.AuthorityKeyService.readAuthorityKey:input_type -> pb.ReadAuthorityKeyRequest
3, // 3: pb.AuthorityKeyService.resetAuthorityKey:input_type -> pb.ResetAuthorityKeyRequest 3, // 3: pb.AuthorityKeyService.resetAuthorityKey:input_type -> pb.ResetAuthorityKeyRequest
4, // 4: pb.AuthorityKeyService.validateAuthorityKey:input_type -> pb.ValidateAuthorityKeyRequest 4, // 4: pb.AuthorityKeyService.validateAuthorityKey:input_type -> pb.ValidateAuthorityKeyRequest
6, // 5: pb.AuthorityKeyService.checkAuthority:input_type -> pb.CheckAuthorityRequest 6, // 5: pb.AuthorityKeyService.checkAuthority:input_type -> pb.CheckAuthorityRequest
9, // 6: pb.AuthorityKeyService.updateAuthorityKey:output_type -> pb.RPCSuccess 8, // 6: pb.AuthorityKeyService.findAuthorityQuota:input_type -> pb.FindAuthorityQuotaRequest
2, // 7: pb.AuthorityKeyService.readAuthorityKey:output_type -> pb.ReadAuthorityKeyResponse 11, // 7: pb.AuthorityKeyService.updateAuthorityKey:output_type -> pb.RPCSuccess
9, // 8: pb.AuthorityKeyService.resetAuthorityKey:output_type -> pb.RPCSuccess 2, // 8: pb.AuthorityKeyService.readAuthorityKey:output_type -> pb.ReadAuthorityKeyResponse
5, // 9: pb.AuthorityKeyService.validateAuthorityKey:output_type -> pb.ValidateAuthorityKeyResponse 11, // 9: pb.AuthorityKeyService.resetAuthorityKey:output_type -> pb.RPCSuccess
7, // 10: pb.AuthorityKeyService.checkAuthority:output_type -> pb.CheckAuthorityResponse 5, // 10: pb.AuthorityKeyService.validateAuthorityKey:output_type -> pb.ValidateAuthorityKeyResponse
6, // [6:11] is the sub-list for method output_type 7, // 11: pb.AuthorityKeyService.checkAuthority:output_type -> pb.CheckAuthorityResponse
1, // [1:6] is the sub-list for method input_type 9, // 12: pb.AuthorityKeyService.findAuthorityQuota:output_type -> pb.FindAuthorityQuotaResponse
7, // [7:13] is the sub-list for method output_type
1, // [1:7] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name 1, // [1:1] is the sub-list for extension type_name
1, // [1:1] is the sub-list for extension extendee 1, // [1:1] is the sub-list for extension extendee
0, // [0:1] is the sub-list for field type_name 0, // [0:1] is the sub-list for field type_name
@@ -659,6 +770,30 @@ func file_service_authority_key_proto_init() {
return nil return nil
} }
} }
file_service_authority_key_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindAuthorityQuotaRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_authority_key_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindAuthorityQuotaResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
} }
type x struct{} type x struct{}
out := protoimpl.TypeBuilder{ out := protoimpl.TypeBuilder{
@@ -666,7 +801,7 @@ func file_service_authority_key_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_service_authority_key_proto_rawDesc, RawDescriptor: file_service_authority_key_proto_rawDesc,
NumEnums: 0, NumEnums: 0,
NumMessages: 8, NumMessages: 10,
NumExtensions: 0, NumExtensions: 0,
NumServices: 1, NumServices: 1,
}, },
@@ -702,6 +837,8 @@ type AuthorityKeyServiceClient interface {
ValidateAuthorityKey(ctx context.Context, in *ValidateAuthorityKeyRequest, opts ...grpc.CallOption) (*ValidateAuthorityKeyResponse, error) ValidateAuthorityKey(ctx context.Context, in *ValidateAuthorityKeyRequest, opts ...grpc.CallOption) (*ValidateAuthorityKeyResponse, error)
// 检查版本信息 // 检查版本信息
CheckAuthority(ctx context.Context, in *CheckAuthorityRequest, opts ...grpc.CallOption) (*CheckAuthorityResponse, error) CheckAuthority(ctx context.Context, in *CheckAuthorityRequest, opts ...grpc.CallOption) (*CheckAuthorityResponse, error)
// 查询授权容量
FindAuthorityQuota(ctx context.Context, in *FindAuthorityQuotaRequest, opts ...grpc.CallOption) (*FindAuthorityQuotaResponse, error)
} }
type authorityKeyServiceClient struct { type authorityKeyServiceClient struct {
@@ -757,6 +894,15 @@ func (c *authorityKeyServiceClient) CheckAuthority(ctx context.Context, in *Chec
return out, nil return out, nil
} }
func (c *authorityKeyServiceClient) FindAuthorityQuota(ctx context.Context, in *FindAuthorityQuotaRequest, opts ...grpc.CallOption) (*FindAuthorityQuotaResponse, error) {
out := new(FindAuthorityQuotaResponse)
err := c.cc.Invoke(ctx, "/pb.AuthorityKeyService/findAuthorityQuota", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// AuthorityKeyServiceServer is the server API for AuthorityKeyService service. // AuthorityKeyServiceServer is the server API for AuthorityKeyService service.
type AuthorityKeyServiceServer interface { type AuthorityKeyServiceServer interface {
// 设置Key // 设置Key
@@ -769,6 +915,8 @@ type AuthorityKeyServiceServer interface {
ValidateAuthorityKey(context.Context, *ValidateAuthorityKeyRequest) (*ValidateAuthorityKeyResponse, error) ValidateAuthorityKey(context.Context, *ValidateAuthorityKeyRequest) (*ValidateAuthorityKeyResponse, error)
// 检查版本信息 // 检查版本信息
CheckAuthority(context.Context, *CheckAuthorityRequest) (*CheckAuthorityResponse, error) CheckAuthority(context.Context, *CheckAuthorityRequest) (*CheckAuthorityResponse, error)
// 查询授权容量
FindAuthorityQuota(context.Context, *FindAuthorityQuotaRequest) (*FindAuthorityQuotaResponse, error)
} }
// UnimplementedAuthorityKeyServiceServer can be embedded to have forward compatible implementations. // UnimplementedAuthorityKeyServiceServer can be embedded to have forward compatible implementations.
@@ -790,6 +938,9 @@ func (*UnimplementedAuthorityKeyServiceServer) ValidateAuthorityKey(context.Cont
func (*UnimplementedAuthorityKeyServiceServer) CheckAuthority(context.Context, *CheckAuthorityRequest) (*CheckAuthorityResponse, error) { func (*UnimplementedAuthorityKeyServiceServer) CheckAuthority(context.Context, *CheckAuthorityRequest) (*CheckAuthorityResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CheckAuthority not implemented") return nil, status.Errorf(codes.Unimplemented, "method CheckAuthority not implemented")
} }
func (*UnimplementedAuthorityKeyServiceServer) FindAuthorityQuota(context.Context, *FindAuthorityQuotaRequest) (*FindAuthorityQuotaResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindAuthorityQuota not implemented")
}
func RegisterAuthorityKeyServiceServer(s *grpc.Server, srv AuthorityKeyServiceServer) { func RegisterAuthorityKeyServiceServer(s *grpc.Server, srv AuthorityKeyServiceServer) {
s.RegisterService(&_AuthorityKeyService_serviceDesc, srv) s.RegisterService(&_AuthorityKeyService_serviceDesc, srv)
@@ -885,6 +1036,24 @@ func _AuthorityKeyService_CheckAuthority_Handler(srv interface{}, ctx context.Co
return interceptor(ctx, in, info, handler) return interceptor(ctx, in, info, handler)
} }
func _AuthorityKeyService_FindAuthorityQuota_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FindAuthorityQuotaRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AuthorityKeyServiceServer).FindAuthorityQuota(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.AuthorityKeyService/FindAuthorityQuota",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AuthorityKeyServiceServer).FindAuthorityQuota(ctx, req.(*FindAuthorityQuotaRequest))
}
return interceptor(ctx, in, info, handler)
}
var _AuthorityKeyService_serviceDesc = grpc.ServiceDesc{ var _AuthorityKeyService_serviceDesc = grpc.ServiceDesc{
ServiceName: "pb.AuthorityKeyService", ServiceName: "pb.AuthorityKeyService",
HandlerType: (*AuthorityKeyServiceServer)(nil), HandlerType: (*AuthorityKeyServiceServer)(nil),
@@ -909,6 +1078,10 @@ var _AuthorityKeyService_serviceDesc = grpc.ServiceDesc{
MethodName: "checkAuthority", MethodName: "checkAuthority",
Handler: _AuthorityKeyService_CheckAuthority_Handler, Handler: _AuthorityKeyService_CheckAuthority_Handler,
}, },
{
MethodName: "findAuthorityQuota",
Handler: _AuthorityKeyService_FindAuthorityQuota_Handler,
},
}, },
Streams: []grpc.StreamDesc{}, Streams: []grpc.StreamDesc{},
Metadata: "service_authority_key.proto", Metadata: "service_authority_key.proto",
+162 -41
View File
@@ -267,6 +267,62 @@ func (x *UpdateHTTPCacheTaskKeysStatusRequest) GetKeyResults() []*UpdateHTTPCach
return nil return nil
} }
// 计算当天已经清理的Key数量
type CountHTTPCacheTaskKeysWithDayRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
KeyType string `protobuf:"bytes,1,opt,name=keyType,proto3" json:"keyType,omitempty"` // Key类型:清理:purge,预热:fetch
Day string `protobuf:"bytes,2,opt,name=day,proto3" json:"day,omitempty"` // 日期,格式:YYYYMMDD
}
func (x *CountHTTPCacheTaskKeysWithDayRequest) Reset() {
*x = CountHTTPCacheTaskKeysWithDayRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_http_cache_task_key_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CountHTTPCacheTaskKeysWithDayRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CountHTTPCacheTaskKeysWithDayRequest) ProtoMessage() {}
func (x *CountHTTPCacheTaskKeysWithDayRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_http_cache_task_key_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CountHTTPCacheTaskKeysWithDayRequest.ProtoReflect.Descriptor instead.
func (*CountHTTPCacheTaskKeysWithDayRequest) Descriptor() ([]byte, []int) {
return file_service_http_cache_task_key_proto_rawDescGZIP(), []int{5}
}
func (x *CountHTTPCacheTaskKeysWithDayRequest) GetKeyType() string {
if x != nil {
return x.KeyType
}
return ""
}
func (x *CountHTTPCacheTaskKeysWithDayRequest) GetDay() string {
if x != nil {
return x.Day
}
return ""
}
type ValidateHTTPCacheTaskKeysResponse_FailKey struct { type ValidateHTTPCacheTaskKeysResponse_FailKey struct {
state protoimpl.MessageState state protoimpl.MessageState
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
@@ -279,7 +335,7 @@ type ValidateHTTPCacheTaskKeysResponse_FailKey struct {
func (x *ValidateHTTPCacheTaskKeysResponse_FailKey) Reset() { func (x *ValidateHTTPCacheTaskKeysResponse_FailKey) Reset() {
*x = ValidateHTTPCacheTaskKeysResponse_FailKey{} *x = ValidateHTTPCacheTaskKeysResponse_FailKey{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_service_http_cache_task_key_proto_msgTypes[5] mi := &file_service_http_cache_task_key_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -292,7 +348,7 @@ func (x *ValidateHTTPCacheTaskKeysResponse_FailKey) String() string {
func (*ValidateHTTPCacheTaskKeysResponse_FailKey) ProtoMessage() {} func (*ValidateHTTPCacheTaskKeysResponse_FailKey) ProtoMessage() {}
func (x *ValidateHTTPCacheTaskKeysResponse_FailKey) ProtoReflect() protoreflect.Message { func (x *ValidateHTTPCacheTaskKeysResponse_FailKey) ProtoReflect() protoreflect.Message {
mi := &file_service_http_cache_task_key_proto_msgTypes[5] mi := &file_service_http_cache_task_key_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -335,7 +391,7 @@ type UpdateHTTPCacheTaskKeysStatusRequest_KeyResult struct {
func (x *UpdateHTTPCacheTaskKeysStatusRequest_KeyResult) Reset() { func (x *UpdateHTTPCacheTaskKeysStatusRequest_KeyResult) Reset() {
*x = UpdateHTTPCacheTaskKeysStatusRequest_KeyResult{} *x = UpdateHTTPCacheTaskKeysStatusRequest_KeyResult{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_service_http_cache_task_key_proto_msgTypes[6] mi := &file_service_http_cache_task_key_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -348,7 +404,7 @@ func (x *UpdateHTTPCacheTaskKeysStatusRequest_KeyResult) String() string {
func (*UpdateHTTPCacheTaskKeysStatusRequest_KeyResult) ProtoMessage() {} func (*UpdateHTTPCacheTaskKeysStatusRequest_KeyResult) ProtoMessage() {}
func (x *UpdateHTTPCacheTaskKeysStatusRequest_KeyResult) ProtoReflect() protoreflect.Message { func (x *UpdateHTTPCacheTaskKeysStatusRequest_KeyResult) ProtoReflect() protoreflect.Message {
mi := &file_service_http_cache_task_key_proto_msgTypes[6] mi := &file_service_http_cache_task_key_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -432,29 +488,40 @@ var file_service_http_cache_task_key_proto_rawDesc = []byte{
0x0d, 0x6e, 0x6f, 0x64, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x0d, 0x6e, 0x6f, 0x64, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02,
0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x6e, 0x6f, 0x64, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x6e, 0x6f, 0x64, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65,
0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01,
0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x32, 0xcb, 0x02, 0x0a, 0x17, 0x48, 0x54, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x52, 0x0a, 0x24, 0x43, 0x6f, 0x75,
0x54, 0x50, 0x43, 0x61, 0x63, 0x68, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x4b, 0x65, 0x79, 0x53, 0x65, 0x6e, 0x74, 0x48, 0x54, 0x54, 0x50, 0x43, 0x61, 0x63, 0x68, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x4b,
0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x68, 0x0a, 0x19, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x79, 0x73, 0x57, 0x69, 0x74, 0x68, 0x44, 0x61, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x65, 0x48, 0x54, 0x54, 0x50, 0x43, 0x61, 0x63, 0x68, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x4b, 0x65, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x6b, 0x65, 0x79, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01,
0x79, 0x73, 0x12, 0x24, 0x2e, 0x70, 0x62, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x28, 0x09, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x64,
0x61, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x64, 0x61, 0x79, 0x32, 0xac, 0x03,
0x0a, 0x17, 0x48, 0x54, 0x54, 0x50, 0x43, 0x61, 0x63, 0x68, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x4b,
0x65, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x68, 0x0a, 0x19, 0x76, 0x61, 0x6c,
0x69, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x43, 0x61, 0x63, 0x68, 0x65, 0x54, 0x61,
0x73, 0x6b, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x24, 0x2e, 0x70, 0x62, 0x2e, 0x56, 0x61, 0x6c, 0x69,
0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x43, 0x61, 0x63, 0x68, 0x65, 0x54, 0x61, 0x73,
0x6b, 0x4b, 0x65, 0x79, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x70,
0x62, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x43, 0x61,
0x63, 0x68, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x4b, 0x65, 0x79, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x6e, 0x73, 0x65, 0x12, 0x6b, 0x0a, 0x1a, 0x66, 0x69, 0x6e, 0x64, 0x44, 0x6f, 0x69, 0x6e, 0x67,
0x48, 0x54, 0x54, 0x50, 0x43, 0x61, 0x63, 0x68, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x4b, 0x65, 0x79, 0x48, 0x54, 0x54, 0x50, 0x43, 0x61, 0x63, 0x68, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x4b, 0x65, 0x79,
0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x70, 0x62, 0x2e, 0x56, 0x61, 0x73, 0x12, 0x25, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x44, 0x6f, 0x69, 0x6e, 0x67,
0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x43, 0x61, 0x63, 0x68, 0x65, 0x54, 0x48, 0x54, 0x54, 0x50, 0x43, 0x61, 0x63, 0x68, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x4b, 0x65, 0x79,
0x61, 0x73, 0x6b, 0x4b, 0x65, 0x79, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69,
0x6b, 0x0a, 0x1a, 0x66, 0x69, 0x6e, 0x64, 0x44, 0x6f, 0x69, 0x6e, 0x67, 0x48, 0x54, 0x54, 0x50, 0x6e, 0x64, 0x44, 0x6f, 0x69, 0x6e, 0x67, 0x48, 0x54, 0x54, 0x50, 0x43, 0x61, 0x63, 0x68, 0x65,
0x43, 0x61, 0x63, 0x68, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x25, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4b, 0x65, 0x79, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x44, 0x6f, 0x69, 0x6e, 0x67, 0x48, 0x54, 0x54, 0x50, 0x12, 0x59, 0x0a, 0x1d, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x43, 0x61,
0x43, 0x61, 0x63, 0x68, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x4b, 0x65, 0x79, 0x73, 0x52, 0x65, 0x71, 0x63, 0x68, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x4b, 0x65, 0x79, 0x73, 0x53, 0x74, 0x61, 0x74, 0x75,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x44, 0x6f, 0x73, 0x12, 0x28, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54,
0x69, 0x6e, 0x67, 0x48, 0x54, 0x54, 0x50, 0x43, 0x61, 0x63, 0x68, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x50, 0x43, 0x61, 0x63, 0x68, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x4b, 0x65, 0x79, 0x73, 0x53, 0x74,
0x4b, 0x65, 0x79, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x59, 0x0a, 0x1d, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62,
0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x43, 0x61, 0x63, 0x68, 0x65, 0x54, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x5f, 0x0a, 0x1d, 0x63,
0x61, 0x73, 0x6b, 0x4b, 0x65, 0x79, 0x73, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x28, 0x2e, 0x6f, 0x75, 0x6e, 0x74, 0x48, 0x54, 0x54, 0x50, 0x43, 0x61, 0x63, 0x68, 0x65, 0x54, 0x61, 0x73,
0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x43, 0x61, 0x63, 0x6b, 0x4b, 0x65, 0x79, 0x73, 0x57, 0x69, 0x74, 0x68, 0x44, 0x61, 0x79, 0x12, 0x28, 0x2e, 0x70,
0x68, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x4b, 0x65, 0x79, 0x73, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x62, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x48, 0x54, 0x54, 0x50, 0x43, 0x61, 0x63, 0x68, 0x65,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x54, 0x61, 0x73, 0x6b, 0x4b, 0x65, 0x79, 0x73, 0x57, 0x69, 0x74, 0x68, 0x44, 0x61, 0x79, 0x52,
0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x43,
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x06, 0x5a, 0x04,
0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
} }
var ( var (
@@ -469,30 +536,34 @@ func file_service_http_cache_task_key_proto_rawDescGZIP() []byte {
return file_service_http_cache_task_key_proto_rawDescData return file_service_http_cache_task_key_proto_rawDescData
} }
var file_service_http_cache_task_key_proto_msgTypes = make([]protoimpl.MessageInfo, 7) var file_service_http_cache_task_key_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
var file_service_http_cache_task_key_proto_goTypes = []interface{}{ var file_service_http_cache_task_key_proto_goTypes = []interface{}{
(*ValidateHTTPCacheTaskKeysRequest)(nil), // 0: pb.ValidateHTTPCacheTaskKeysRequest (*ValidateHTTPCacheTaskKeysRequest)(nil), // 0: pb.ValidateHTTPCacheTaskKeysRequest
(*ValidateHTTPCacheTaskKeysResponse)(nil), // 1: pb.ValidateHTTPCacheTaskKeysResponse (*ValidateHTTPCacheTaskKeysResponse)(nil), // 1: pb.ValidateHTTPCacheTaskKeysResponse
(*FindDoingHTTPCacheTaskKeysRequest)(nil), // 2: pb.FindDoingHTTPCacheTaskKeysRequest (*FindDoingHTTPCacheTaskKeysRequest)(nil), // 2: pb.FindDoingHTTPCacheTaskKeysRequest
(*FindDoingHTTPCacheTaskKeysResponse)(nil), // 3: pb.FindDoingHTTPCacheTaskKeysResponse (*FindDoingHTTPCacheTaskKeysResponse)(nil), // 3: pb.FindDoingHTTPCacheTaskKeysResponse
(*UpdateHTTPCacheTaskKeysStatusRequest)(nil), // 4: pb.UpdateHTTPCacheTaskKeysStatusRequest (*UpdateHTTPCacheTaskKeysStatusRequest)(nil), // 4: pb.UpdateHTTPCacheTaskKeysStatusRequest
(*ValidateHTTPCacheTaskKeysResponse_FailKey)(nil), // 5: pb.ValidateHTTPCacheTaskKeysResponse.FailKey (*CountHTTPCacheTaskKeysWithDayRequest)(nil), // 5: pb.CountHTTPCacheTaskKeysWithDayRequest
(*UpdateHTTPCacheTaskKeysStatusRequest_KeyResult)(nil), // 6: pb.UpdateHTTPCacheTaskKeysStatusRequest.KeyResult (*ValidateHTTPCacheTaskKeysResponse_FailKey)(nil), // 6: pb.ValidateHTTPCacheTaskKeysResponse.FailKey
(*HTTPCacheTaskKey)(nil), // 7: pb.HTTPCacheTaskKey (*UpdateHTTPCacheTaskKeysStatusRequest_KeyResult)(nil), // 7: pb.UpdateHTTPCacheTaskKeysStatusRequest.KeyResult
(*RPCSuccess)(nil), // 8: pb.RPCSuccess (*HTTPCacheTaskKey)(nil), // 8: pb.HTTPCacheTaskKey
(*RPCSuccess)(nil), // 9: pb.RPCSuccess
(*RPCCountResponse)(nil), // 10: pb.RPCCountResponse
} }
var file_service_http_cache_task_key_proto_depIdxs = []int32{ var file_service_http_cache_task_key_proto_depIdxs = []int32{
5, // 0: pb.ValidateHTTPCacheTaskKeysResponse.failKeys:type_name -> pb.ValidateHTTPCacheTaskKeysResponse.FailKey 6, // 0: pb.ValidateHTTPCacheTaskKeysResponse.failKeys:type_name -> pb.ValidateHTTPCacheTaskKeysResponse.FailKey
7, // 1: pb.FindDoingHTTPCacheTaskKeysResponse.httpCacheTaskKeys:type_name -> pb.HTTPCacheTaskKey 8, // 1: pb.FindDoingHTTPCacheTaskKeysResponse.httpCacheTaskKeys:type_name -> pb.HTTPCacheTaskKey
6, // 2: pb.UpdateHTTPCacheTaskKeysStatusRequest.keyResults:type_name -> pb.UpdateHTTPCacheTaskKeysStatusRequest.KeyResult 7, // 2: pb.UpdateHTTPCacheTaskKeysStatusRequest.keyResults:type_name -> pb.UpdateHTTPCacheTaskKeysStatusRequest.KeyResult
0, // 3: pb.HTTPCacheTaskKeyService.validateHTTPCacheTaskKeys:input_type -> pb.ValidateHTTPCacheTaskKeysRequest 0, // 3: pb.HTTPCacheTaskKeyService.validateHTTPCacheTaskKeys:input_type -> pb.ValidateHTTPCacheTaskKeysRequest
2, // 4: pb.HTTPCacheTaskKeyService.findDoingHTTPCacheTaskKeys:input_type -> pb.FindDoingHTTPCacheTaskKeysRequest 2, // 4: pb.HTTPCacheTaskKeyService.findDoingHTTPCacheTaskKeys:input_type -> pb.FindDoingHTTPCacheTaskKeysRequest
4, // 5: pb.HTTPCacheTaskKeyService.updateHTTPCacheTaskKeysStatus:input_type -> pb.UpdateHTTPCacheTaskKeysStatusRequest 4, // 5: pb.HTTPCacheTaskKeyService.updateHTTPCacheTaskKeysStatus:input_type -> pb.UpdateHTTPCacheTaskKeysStatusRequest
1, // 6: pb.HTTPCacheTaskKeyService.validateHTTPCacheTaskKeys:output_type -> pb.ValidateHTTPCacheTaskKeysResponse 5, // 6: pb.HTTPCacheTaskKeyService.countHTTPCacheTaskKeysWithDay:input_type -> pb.CountHTTPCacheTaskKeysWithDayRequest
3, // 7: pb.HTTPCacheTaskKeyService.findDoingHTTPCacheTaskKeys:output_type -> pb.FindDoingHTTPCacheTaskKeysResponse 1, // 7: pb.HTTPCacheTaskKeyService.validateHTTPCacheTaskKeys:output_type -> pb.ValidateHTTPCacheTaskKeysResponse
8, // 8: pb.HTTPCacheTaskKeyService.updateHTTPCacheTaskKeysStatus:output_type -> pb.RPCSuccess 3, // 8: pb.HTTPCacheTaskKeyService.findDoingHTTPCacheTaskKeys:output_type -> pb.FindDoingHTTPCacheTaskKeysResponse
6, // [6:9] is the sub-list for method output_type 9, // 9: pb.HTTPCacheTaskKeyService.updateHTTPCacheTaskKeysStatus:output_type -> pb.RPCSuccess
3, // [3:6] is the sub-list for method input_type 10, // 10: pb.HTTPCacheTaskKeyService.countHTTPCacheTaskKeysWithDay:output_type -> pb.RPCCountResponse
7, // [7:11] is the sub-list for method output_type
3, // [3:7] is the sub-list for method input_type
3, // [3:3] is the sub-list for extension type_name 3, // [3:3] is the sub-list for extension type_name
3, // [3:3] is the sub-list for extension extendee 3, // [3:3] is the sub-list for extension extendee
0, // [0:3] is the sub-list for field type_name 0, // [0:3] is the sub-list for field type_name
@@ -567,7 +638,7 @@ func file_service_http_cache_task_key_proto_init() {
} }
} }
file_service_http_cache_task_key_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { file_service_http_cache_task_key_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ValidateHTTPCacheTaskKeysResponse_FailKey); i { switch v := v.(*CountHTTPCacheTaskKeysWithDayRequest); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@@ -579,6 +650,18 @@ func file_service_http_cache_task_key_proto_init() {
} }
} }
file_service_http_cache_task_key_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { file_service_http_cache_task_key_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ValidateHTTPCacheTaskKeysResponse_FailKey); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_http_cache_task_key_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UpdateHTTPCacheTaskKeysStatusRequest_KeyResult); i { switch v := v.(*UpdateHTTPCacheTaskKeysStatusRequest_KeyResult); i {
case 0: case 0:
return &v.state return &v.state
@@ -597,7 +680,7 @@ func file_service_http_cache_task_key_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_service_http_cache_task_key_proto_rawDesc, RawDescriptor: file_service_http_cache_task_key_proto_rawDesc,
NumEnums: 0, NumEnums: 0,
NumMessages: 7, NumMessages: 8,
NumExtensions: 0, NumExtensions: 0,
NumServices: 1, NumServices: 1,
}, },
@@ -629,6 +712,8 @@ type HTTPCacheTaskKeyServiceClient interface {
FindDoingHTTPCacheTaskKeys(ctx context.Context, in *FindDoingHTTPCacheTaskKeysRequest, opts ...grpc.CallOption) (*FindDoingHTTPCacheTaskKeysResponse, error) FindDoingHTTPCacheTaskKeys(ctx context.Context, in *FindDoingHTTPCacheTaskKeysRequest, opts ...grpc.CallOption) (*FindDoingHTTPCacheTaskKeysResponse, error)
// 更新一组Key状态 // 更新一组Key状态
UpdateHTTPCacheTaskKeysStatus(ctx context.Context, in *UpdateHTTPCacheTaskKeysStatusRequest, opts ...grpc.CallOption) (*RPCSuccess, error) UpdateHTTPCacheTaskKeysStatus(ctx context.Context, in *UpdateHTTPCacheTaskKeysStatusRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
// 计算当天已经清理的Key数量
CountHTTPCacheTaskKeysWithDay(ctx context.Context, in *CountHTTPCacheTaskKeysWithDayRequest, opts ...grpc.CallOption) (*RPCCountResponse, error)
} }
type hTTPCacheTaskKeyServiceClient struct { type hTTPCacheTaskKeyServiceClient struct {
@@ -666,6 +751,15 @@ func (c *hTTPCacheTaskKeyServiceClient) UpdateHTTPCacheTaskKeysStatus(ctx contex
return out, nil return out, nil
} }
func (c *hTTPCacheTaskKeyServiceClient) CountHTTPCacheTaskKeysWithDay(ctx context.Context, in *CountHTTPCacheTaskKeysWithDayRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) {
out := new(RPCCountResponse)
err := c.cc.Invoke(ctx, "/pb.HTTPCacheTaskKeyService/countHTTPCacheTaskKeysWithDay", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// HTTPCacheTaskKeyServiceServer is the server API for HTTPCacheTaskKeyService service. // HTTPCacheTaskKeyServiceServer is the server API for HTTPCacheTaskKeyService service.
type HTTPCacheTaskKeyServiceServer interface { type HTTPCacheTaskKeyServiceServer interface {
// 校验缓存Key // 校验缓存Key
@@ -674,6 +768,8 @@ type HTTPCacheTaskKeyServiceServer interface {
FindDoingHTTPCacheTaskKeys(context.Context, *FindDoingHTTPCacheTaskKeysRequest) (*FindDoingHTTPCacheTaskKeysResponse, error) FindDoingHTTPCacheTaskKeys(context.Context, *FindDoingHTTPCacheTaskKeysRequest) (*FindDoingHTTPCacheTaskKeysResponse, error)
// 更新一组Key状态 // 更新一组Key状态
UpdateHTTPCacheTaskKeysStatus(context.Context, *UpdateHTTPCacheTaskKeysStatusRequest) (*RPCSuccess, error) UpdateHTTPCacheTaskKeysStatus(context.Context, *UpdateHTTPCacheTaskKeysStatusRequest) (*RPCSuccess, error)
// 计算当天已经清理的Key数量
CountHTTPCacheTaskKeysWithDay(context.Context, *CountHTTPCacheTaskKeysWithDayRequest) (*RPCCountResponse, error)
} }
// UnimplementedHTTPCacheTaskKeyServiceServer can be embedded to have forward compatible implementations. // UnimplementedHTTPCacheTaskKeyServiceServer can be embedded to have forward compatible implementations.
@@ -689,6 +785,9 @@ func (*UnimplementedHTTPCacheTaskKeyServiceServer) FindDoingHTTPCacheTaskKeys(co
func (*UnimplementedHTTPCacheTaskKeyServiceServer) UpdateHTTPCacheTaskKeysStatus(context.Context, *UpdateHTTPCacheTaskKeysStatusRequest) (*RPCSuccess, error) { func (*UnimplementedHTTPCacheTaskKeyServiceServer) UpdateHTTPCacheTaskKeysStatus(context.Context, *UpdateHTTPCacheTaskKeysStatusRequest) (*RPCSuccess, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateHTTPCacheTaskKeysStatus not implemented") return nil, status.Errorf(codes.Unimplemented, "method UpdateHTTPCacheTaskKeysStatus not implemented")
} }
func (*UnimplementedHTTPCacheTaskKeyServiceServer) CountHTTPCacheTaskKeysWithDay(context.Context, *CountHTTPCacheTaskKeysWithDayRequest) (*RPCCountResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CountHTTPCacheTaskKeysWithDay not implemented")
}
func RegisterHTTPCacheTaskKeyServiceServer(s *grpc.Server, srv HTTPCacheTaskKeyServiceServer) { func RegisterHTTPCacheTaskKeyServiceServer(s *grpc.Server, srv HTTPCacheTaskKeyServiceServer) {
s.RegisterService(&_HTTPCacheTaskKeyService_serviceDesc, srv) s.RegisterService(&_HTTPCacheTaskKeyService_serviceDesc, srv)
@@ -748,6 +847,24 @@ func _HTTPCacheTaskKeyService_UpdateHTTPCacheTaskKeysStatus_Handler(srv interfac
return interceptor(ctx, in, info, handler) return interceptor(ctx, in, info, handler)
} }
func _HTTPCacheTaskKeyService_CountHTTPCacheTaskKeysWithDay_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CountHTTPCacheTaskKeysWithDayRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(HTTPCacheTaskKeyServiceServer).CountHTTPCacheTaskKeysWithDay(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.HTTPCacheTaskKeyService/CountHTTPCacheTaskKeysWithDay",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(HTTPCacheTaskKeyServiceServer).CountHTTPCacheTaskKeysWithDay(ctx, req.(*CountHTTPCacheTaskKeysWithDayRequest))
}
return interceptor(ctx, in, info, handler)
}
var _HTTPCacheTaskKeyService_serviceDesc = grpc.ServiceDesc{ var _HTTPCacheTaskKeyService_serviceDesc = grpc.ServiceDesc{
ServiceName: "pb.HTTPCacheTaskKeyService", ServiceName: "pb.HTTPCacheTaskKeyService",
HandlerType: (*HTTPCacheTaskKeyServiceServer)(nil), HandlerType: (*HTTPCacheTaskKeyServiceServer)(nil),
@@ -764,6 +881,10 @@ var _HTTPCacheTaskKeyService_serviceDesc = grpc.ServiceDesc{
MethodName: "updateHTTPCacheTaskKeysStatus", MethodName: "updateHTTPCacheTaskKeysStatus",
Handler: _HTTPCacheTaskKeyService_UpdateHTTPCacheTaskKeysStatus_Handler, Handler: _HTTPCacheTaskKeyService_UpdateHTTPCacheTaskKeysStatus_Handler,
}, },
{
MethodName: "countHTTPCacheTaskKeysWithDay",
Handler: _HTTPCacheTaskKeyService_CountHTTPCacheTaskKeysWithDay_Handler,
},
}, },
Streams: []grpc.StreamDesc{}, Streams: []grpc.StreamDesc{},
Metadata: "service_http_cache_task_key.proto", Metadata: "service_http_cache_task_key.proto",
+192 -68
View File
@@ -546,6 +546,62 @@ func (x *UpdateHTTPHeaderPolicyCORSRequest) GetCorsJSON() []byte {
return nil return nil
} }
// 修改非标的Headers
type UpdateHTTPHeaderPolicyNonStandardHeadersRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
HttpHeaderPolicyId int64 `protobuf:"varint,1,opt,name=httpHeaderPolicyId,proto3" json:"httpHeaderPolicyId,omitempty"` // Header策略ID
HeaderNames []string `protobuf:"bytes,2,rep,name=headerNames,proto3" json:"headerNames,omitempty"` // 非标Header名称列表
}
func (x *UpdateHTTPHeaderPolicyNonStandardHeadersRequest) Reset() {
*x = UpdateHTTPHeaderPolicyNonStandardHeadersRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_http_header_policy_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdateHTTPHeaderPolicyNonStandardHeadersRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateHTTPHeaderPolicyNonStandardHeadersRequest) ProtoMessage() {}
func (x *UpdateHTTPHeaderPolicyNonStandardHeadersRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_http_header_policy_proto_msgTypes[10]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UpdateHTTPHeaderPolicyNonStandardHeadersRequest.ProtoReflect.Descriptor instead.
func (*UpdateHTTPHeaderPolicyNonStandardHeadersRequest) Descriptor() ([]byte, []int) {
return file_service_http_header_policy_proto_rawDescGZIP(), []int{10}
}
func (x *UpdateHTTPHeaderPolicyNonStandardHeadersRequest) GetHttpHeaderPolicyId() int64 {
if x != nil {
return x.HttpHeaderPolicyId
}
return 0
}
func (x *UpdateHTTPHeaderPolicyNonStandardHeadersRequest) GetHeaderNames() []string {
if x != nil {
return x.HeaderNames
}
return nil
}
var File_service_http_header_policy_proto protoreflect.FileDescriptor var File_service_http_header_policy_proto protoreflect.FileDescriptor
var file_service_http_header_policy_proto_rawDesc = []byte{ var file_service_http_header_policy_proto_rawDesc = []byte{
@@ -619,63 +675,78 @@ var file_service_http_header_policy_proto_rawDesc = []byte{
0x69, 0x63, 0x79, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x12, 0x68, 0x74, 0x74, 0x69, 0x63, 0x79, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x12, 0x68, 0x74, 0x74,
0x70, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x64, 0x12, 0x70, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x64, 0x12,
0x1a, 0x0a, 0x08, 0x63, 0x6f, 0x72, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x1a, 0x0a, 0x08, 0x63, 0x6f, 0x72, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x02, 0x20, 0x01, 0x28,
0x0c, 0x52, 0x08, 0x63, 0x6f, 0x72, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x32, 0xe3, 0x06, 0x0a, 0x17, 0x0c, 0x52, 0x08, 0x63, 0x6f, 0x72, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x22, 0x83, 0x01, 0x0a, 0x2f,
0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,
0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x80, 0x01, 0x0a, 0x21, 0x66, 0x69, 0x6e, 0x64,
0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65,
0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2c, 0x2e,
0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x48, 0x54,
0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x43, 0x6f,
0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x70, 0x62,
0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x48, 0x54, 0x54, 0x50,
0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x43, 0x6f, 0x6e, 0x66,
0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5f, 0x0a, 0x16, 0x63, 0x72,
0x65, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f,
0x6c, 0x69, 0x63, 0x79, 0x12, 0x21, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65,
0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c,
0x69, 0x63, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x65, 0x0a, 0x23, 0x75,
0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50,
0x6f, 0x6c, 0x69, 0x63, 0x79, 0x41, 0x64, 0x64, 0x69, 0x6e, 0x67, 0x48, 0x65, 0x61, 0x64, 0x65,
0x72, 0x73, 0x12, 0x2e, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54,
0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x41, 0x64,
0x64, 0x69, 0x6e, 0x67, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65,
0x73, 0x73, 0x12, 0x67, 0x0a, 0x24, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50,
0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x53, 0x65, 0x74, 0x74,
0x69, 0x6e, 0x67, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x12, 0x2f, 0x2e, 0x70, 0x62, 0x2e,
0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72,
0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x48, 0x65, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x4e, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72,
0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x64, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x67, 0x0a, 0x24, 0x75, 0x2e, 0x0a, 0x12, 0x68, 0x74, 0x74, 0x70, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c,
0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x69, 0x63, 0x79, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x12, 0x68, 0x74, 0x74,
0x6f, 0x6c, 0x69, 0x63, 0x79, 0x41, 0x64, 0x64, 0x69, 0x6e, 0x67, 0x54, 0x72, 0x61, 0x69, 0x6c, 0x70, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x64, 0x12,
0x65, 0x72, 0x73, 0x12, 0x2f, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x20, 0x0a, 0x0b, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x02,
0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x41, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65,
0x64, 0x64, 0x69, 0x6e, 0x67, 0x54, 0x72, 0x61, 0x69, 0x6c, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x73, 0x32, 0xd4, 0x07, 0x0a, 0x17, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x80, 0x01,
0x63, 0x65, 0x73, 0x73, 0x12, 0x6b, 0x0a, 0x26, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x0a, 0x21, 0x66, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x48, 0x54, 0x54,
0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x43, 0x6f, 0x6e,
0x70, 0x6c, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x12, 0x31, 0x66, 0x69, 0x67, 0x12, 0x2c, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61,
0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x62, 0x6c, 0x65, 0x64, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f,
0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x6c, 0x69, 0x63, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x1a, 0x2d, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c,
0x65, 0x64, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69,
0x63, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x12, 0x5f, 0x0a, 0x16, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65,
0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x21, 0x2e, 0x70, 0x62, 0x2e,
0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72,
0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e,
0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61,
0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
0x65, 0x12, 0x65, 0x0a, 0x23, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x48,
0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x41, 0x64, 0x64, 0x69, 0x6e,
0x67, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x12, 0x2e, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70,
0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f,
0x6c, 0x69, 0x63, 0x79, 0x41, 0x64, 0x64, 0x69, 0x6e, 0x67, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72,
0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50,
0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x67, 0x0a, 0x24, 0x75, 0x70, 0x64, 0x61,
0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69,
0x63, 0x79, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73,
0x12, 0x2f, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50,
0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x53, 0x65, 0x74, 0x74,
0x69, 0x6e, 0x67, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x69, 0x6e, 0x67, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73,
0x73, 0x12, 0x69, 0x0a, 0x25, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x48, 0x73, 0x12, 0x67, 0x0a, 0x24, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x48,
0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x41, 0x64, 0x64, 0x69, 0x6e,
0x69, 0x6e, 0x67, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x12, 0x30, 0x2e, 0x70, 0x62, 0x2e, 0x67, 0x54, 0x72, 0x61, 0x69, 0x6c, 0x65, 0x72, 0x73, 0x12, 0x2f, 0x2e, 0x70, 0x62, 0x2e, 0x55,
0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50,
0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x48, 0x65, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x41, 0x64, 0x64, 0x69, 0x6e, 0x67, 0x54, 0x72, 0x61, 0x69, 0x6c,
0x61, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e,
0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x53, 0x0a, 0x1a, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x6b, 0x0a, 0x26, 0x75, 0x70,
0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f,
0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x43, 0x4f, 0x52, 0x53, 0x12, 0x25, 0x2e, 0x70, 0x62, 0x2e, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x48, 0x65, 0x61,
0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x64, 0x65, 0x72, 0x73, 0x12, 0x31, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x43, 0x4f, 0x52, 0x53, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,
0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x52, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73,
0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43,
0x33, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x69, 0x0a, 0x25, 0x75, 0x70, 0x64, 0x61, 0x74,
0x65, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63,
0x79, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73,
0x12, 0x30, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50,
0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x44, 0x65, 0x6c, 0x65,
0x74, 0x69, 0x6e, 0x67, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65,
0x73, 0x73, 0x12, 0x6f, 0x0a, 0x28, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50,
0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x4e, 0x6f, 0x6e, 0x53,
0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x12, 0x33,
0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65,
0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x4e, 0x6f, 0x6e, 0x53, 0x74, 0x61,
0x6e, 0x64, 0x61, 0x72, 0x64, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63,
0x65, 0x73, 0x73, 0x12, 0x53, 0x0a, 0x1a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54,
0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x43, 0x4f, 0x52,
0x53, 0x12, 0x25, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54,
0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x43, 0x4f, 0x52,
0x53, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50,
0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62,
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
} }
var ( var (
@@ -690,7 +761,7 @@ func file_service_http_header_policy_proto_rawDescGZIP() []byte {
return file_service_http_header_policy_proto_rawDescData return file_service_http_header_policy_proto_rawDescData
} }
var file_service_http_header_policy_proto_msgTypes = make([]protoimpl.MessageInfo, 10) var file_service_http_header_policy_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
var file_service_http_header_policy_proto_goTypes = []interface{}{ var file_service_http_header_policy_proto_goTypes = []interface{}{
(*FindEnabledHTTPHeaderPolicyConfigRequest)(nil), // 0: pb.FindEnabledHTTPHeaderPolicyConfigRequest (*FindEnabledHTTPHeaderPolicyConfigRequest)(nil), // 0: pb.FindEnabledHTTPHeaderPolicyConfigRequest
(*FindEnabledHTTPHeaderPolicyConfigResponse)(nil), // 1: pb.FindEnabledHTTPHeaderPolicyConfigResponse (*FindEnabledHTTPHeaderPolicyConfigResponse)(nil), // 1: pb.FindEnabledHTTPHeaderPolicyConfigResponse
@@ -702,7 +773,8 @@ var file_service_http_header_policy_proto_goTypes = []interface{}{
(*UpdateHTTPHeaderPolicyReplacingHeadersRequest)(nil), // 7: pb.UpdateHTTPHeaderPolicyReplacingHeadersRequest (*UpdateHTTPHeaderPolicyReplacingHeadersRequest)(nil), // 7: pb.UpdateHTTPHeaderPolicyReplacingHeadersRequest
(*UpdateHTTPHeaderPolicyDeletingHeadersRequest)(nil), // 8: pb.UpdateHTTPHeaderPolicyDeletingHeadersRequest (*UpdateHTTPHeaderPolicyDeletingHeadersRequest)(nil), // 8: pb.UpdateHTTPHeaderPolicyDeletingHeadersRequest
(*UpdateHTTPHeaderPolicyCORSRequest)(nil), // 9: pb.UpdateHTTPHeaderPolicyCORSRequest (*UpdateHTTPHeaderPolicyCORSRequest)(nil), // 9: pb.UpdateHTTPHeaderPolicyCORSRequest
(*RPCSuccess)(nil), // 10: pb.RPCSuccess (*UpdateHTTPHeaderPolicyNonStandardHeadersRequest)(nil), // 10: pb.UpdateHTTPHeaderPolicyNonStandardHeadersRequest
(*RPCSuccess)(nil), // 11: pb.RPCSuccess
} }
var file_service_http_header_policy_proto_depIdxs = []int32{ var file_service_http_header_policy_proto_depIdxs = []int32{
0, // 0: pb.HTTPHeaderPolicyService.findEnabledHTTPHeaderPolicyConfig:input_type -> pb.FindEnabledHTTPHeaderPolicyConfigRequest 0, // 0: pb.HTTPHeaderPolicyService.findEnabledHTTPHeaderPolicyConfig:input_type -> pb.FindEnabledHTTPHeaderPolicyConfigRequest
@@ -712,17 +784,19 @@ var file_service_http_header_policy_proto_depIdxs = []int32{
6, // 4: pb.HTTPHeaderPolicyService.updateHTTPHeaderPolicyAddingTrailers:input_type -> pb.UpdateHTTPHeaderPolicyAddingTrailersRequest 6, // 4: pb.HTTPHeaderPolicyService.updateHTTPHeaderPolicyAddingTrailers:input_type -> pb.UpdateHTTPHeaderPolicyAddingTrailersRequest
7, // 5: pb.HTTPHeaderPolicyService.updateHTTPHeaderPolicyReplacingHeaders:input_type -> pb.UpdateHTTPHeaderPolicyReplacingHeadersRequest 7, // 5: pb.HTTPHeaderPolicyService.updateHTTPHeaderPolicyReplacingHeaders:input_type -> pb.UpdateHTTPHeaderPolicyReplacingHeadersRequest
8, // 6: pb.HTTPHeaderPolicyService.updateHTTPHeaderPolicyDeletingHeaders:input_type -> pb.UpdateHTTPHeaderPolicyDeletingHeadersRequest 8, // 6: pb.HTTPHeaderPolicyService.updateHTTPHeaderPolicyDeletingHeaders:input_type -> pb.UpdateHTTPHeaderPolicyDeletingHeadersRequest
9, // 7: pb.HTTPHeaderPolicyService.updateHTTPHeaderPolicyCORS:input_type -> pb.UpdateHTTPHeaderPolicyCORSRequest 10, // 7: pb.HTTPHeaderPolicyService.updateHTTPHeaderPolicyNonStandardHeaders:input_type -> pb.UpdateHTTPHeaderPolicyNonStandardHeadersRequest
1, // 8: pb.HTTPHeaderPolicyService.findEnabledHTTPHeaderPolicyConfig:output_type -> pb.FindEnabledHTTPHeaderPolicyConfigResponse 9, // 8: pb.HTTPHeaderPolicyService.updateHTTPHeaderPolicyCORS:input_type -> pb.UpdateHTTPHeaderPolicyCORSRequest
3, // 9: pb.HTTPHeaderPolicyService.createHTTPHeaderPolicy:output_type -> pb.CreateHTTPHeaderPolicyResponse 1, // 9: pb.HTTPHeaderPolicyService.findEnabledHTTPHeaderPolicyConfig:output_type -> pb.FindEnabledHTTPHeaderPolicyConfigResponse
10, // 10: pb.HTTPHeaderPolicyService.updateHTTPHeaderPolicyAddingHeaders:output_type -> pb.RPCSuccess 3, // 10: pb.HTTPHeaderPolicyService.createHTTPHeaderPolicy:output_type -> pb.CreateHTTPHeaderPolicyResponse
10, // 11: pb.HTTPHeaderPolicyService.updateHTTPHeaderPolicySettingHeaders:output_type -> pb.RPCSuccess 11, // 11: pb.HTTPHeaderPolicyService.updateHTTPHeaderPolicyAddingHeaders:output_type -> pb.RPCSuccess
10, // 12: pb.HTTPHeaderPolicyService.updateHTTPHeaderPolicyAddingTrailers:output_type -> pb.RPCSuccess 11, // 12: pb.HTTPHeaderPolicyService.updateHTTPHeaderPolicySettingHeaders:output_type -> pb.RPCSuccess
10, // 13: pb.HTTPHeaderPolicyService.updateHTTPHeaderPolicyReplacingHeaders:output_type -> pb.RPCSuccess 11, // 13: pb.HTTPHeaderPolicyService.updateHTTPHeaderPolicyAddingTrailers:output_type -> pb.RPCSuccess
10, // 14: pb.HTTPHeaderPolicyService.updateHTTPHeaderPolicyDeletingHeaders:output_type -> pb.RPCSuccess 11, // 14: pb.HTTPHeaderPolicyService.updateHTTPHeaderPolicyReplacingHeaders:output_type -> pb.RPCSuccess
10, // 15: pb.HTTPHeaderPolicyService.updateHTTPHeaderPolicyCORS:output_type -> pb.RPCSuccess 11, // 15: pb.HTTPHeaderPolicyService.updateHTTPHeaderPolicyDeletingHeaders:output_type -> pb.RPCSuccess
8, // [8:16] is the sub-list for method output_type 11, // 16: pb.HTTPHeaderPolicyService.updateHTTPHeaderPolicyNonStandardHeaders:output_type -> pb.RPCSuccess
0, // [0:8] is the sub-list for method input_type 11, // 17: pb.HTTPHeaderPolicyService.updateHTTPHeaderPolicyCORS:output_type -> pb.RPCSuccess
9, // [9:18] is the sub-list for method output_type
0, // [0:9] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name 0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee 0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name 0, // [0:0] is the sub-list for field type_name
@@ -855,6 +929,18 @@ func file_service_http_header_policy_proto_init() {
return nil return nil
} }
} }
file_service_http_header_policy_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UpdateHTTPHeaderPolicyNonStandardHeadersRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
} }
type x struct{} type x struct{}
out := protoimpl.TypeBuilder{ out := protoimpl.TypeBuilder{
@@ -862,7 +948,7 @@ func file_service_http_header_policy_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_service_http_header_policy_proto_rawDesc, RawDescriptor: file_service_http_header_policy_proto_rawDesc,
NumEnums: 0, NumEnums: 0,
NumMessages: 10, NumMessages: 11,
NumExtensions: 0, NumExtensions: 0,
NumServices: 1, NumServices: 1,
}, },
@@ -902,6 +988,8 @@ type HTTPHeaderPolicyServiceClient interface {
UpdateHTTPHeaderPolicyReplacingHeaders(ctx context.Context, in *UpdateHTTPHeaderPolicyReplacingHeadersRequest, opts ...grpc.CallOption) (*RPCSuccess, error) UpdateHTTPHeaderPolicyReplacingHeaders(ctx context.Context, in *UpdateHTTPHeaderPolicyReplacingHeadersRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
// 修改删除的Headers // 修改删除的Headers
UpdateHTTPHeaderPolicyDeletingHeaders(ctx context.Context, in *UpdateHTTPHeaderPolicyDeletingHeadersRequest, opts ...grpc.CallOption) (*RPCSuccess, error) UpdateHTTPHeaderPolicyDeletingHeaders(ctx context.Context, in *UpdateHTTPHeaderPolicyDeletingHeadersRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
// 修改非标的Headers
UpdateHTTPHeaderPolicyNonStandardHeaders(ctx context.Context, in *UpdateHTTPHeaderPolicyNonStandardHeadersRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
// 修改策略CORS设置 // 修改策略CORS设置
UpdateHTTPHeaderPolicyCORS(ctx context.Context, in *UpdateHTTPHeaderPolicyCORSRequest, opts ...grpc.CallOption) (*RPCSuccess, error) UpdateHTTPHeaderPolicyCORS(ctx context.Context, in *UpdateHTTPHeaderPolicyCORSRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
} }
@@ -977,6 +1065,15 @@ func (c *hTTPHeaderPolicyServiceClient) UpdateHTTPHeaderPolicyDeletingHeaders(ct
return out, nil return out, nil
} }
func (c *hTTPHeaderPolicyServiceClient) UpdateHTTPHeaderPolicyNonStandardHeaders(ctx context.Context, in *UpdateHTTPHeaderPolicyNonStandardHeadersRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
out := new(RPCSuccess)
err := c.cc.Invoke(ctx, "/pb.HTTPHeaderPolicyService/updateHTTPHeaderPolicyNonStandardHeaders", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *hTTPHeaderPolicyServiceClient) UpdateHTTPHeaderPolicyCORS(ctx context.Context, in *UpdateHTTPHeaderPolicyCORSRequest, opts ...grpc.CallOption) (*RPCSuccess, error) { func (c *hTTPHeaderPolicyServiceClient) UpdateHTTPHeaderPolicyCORS(ctx context.Context, in *UpdateHTTPHeaderPolicyCORSRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
out := new(RPCSuccess) out := new(RPCSuccess)
err := c.cc.Invoke(ctx, "/pb.HTTPHeaderPolicyService/updateHTTPHeaderPolicyCORS", in, out, opts...) err := c.cc.Invoke(ctx, "/pb.HTTPHeaderPolicyService/updateHTTPHeaderPolicyCORS", in, out, opts...)
@@ -1002,6 +1099,8 @@ type HTTPHeaderPolicyServiceServer interface {
UpdateHTTPHeaderPolicyReplacingHeaders(context.Context, *UpdateHTTPHeaderPolicyReplacingHeadersRequest) (*RPCSuccess, error) UpdateHTTPHeaderPolicyReplacingHeaders(context.Context, *UpdateHTTPHeaderPolicyReplacingHeadersRequest) (*RPCSuccess, error)
// 修改删除的Headers // 修改删除的Headers
UpdateHTTPHeaderPolicyDeletingHeaders(context.Context, *UpdateHTTPHeaderPolicyDeletingHeadersRequest) (*RPCSuccess, error) UpdateHTTPHeaderPolicyDeletingHeaders(context.Context, *UpdateHTTPHeaderPolicyDeletingHeadersRequest) (*RPCSuccess, error)
// 修改非标的Headers
UpdateHTTPHeaderPolicyNonStandardHeaders(context.Context, *UpdateHTTPHeaderPolicyNonStandardHeadersRequest) (*RPCSuccess, error)
// 修改策略CORS设置 // 修改策略CORS设置
UpdateHTTPHeaderPolicyCORS(context.Context, *UpdateHTTPHeaderPolicyCORSRequest) (*RPCSuccess, error) UpdateHTTPHeaderPolicyCORS(context.Context, *UpdateHTTPHeaderPolicyCORSRequest) (*RPCSuccess, error)
} }
@@ -1031,6 +1130,9 @@ func (*UnimplementedHTTPHeaderPolicyServiceServer) UpdateHTTPHeaderPolicyReplaci
func (*UnimplementedHTTPHeaderPolicyServiceServer) UpdateHTTPHeaderPolicyDeletingHeaders(context.Context, *UpdateHTTPHeaderPolicyDeletingHeadersRequest) (*RPCSuccess, error) { func (*UnimplementedHTTPHeaderPolicyServiceServer) UpdateHTTPHeaderPolicyDeletingHeaders(context.Context, *UpdateHTTPHeaderPolicyDeletingHeadersRequest) (*RPCSuccess, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateHTTPHeaderPolicyDeletingHeaders not implemented") return nil, status.Errorf(codes.Unimplemented, "method UpdateHTTPHeaderPolicyDeletingHeaders not implemented")
} }
func (*UnimplementedHTTPHeaderPolicyServiceServer) UpdateHTTPHeaderPolicyNonStandardHeaders(context.Context, *UpdateHTTPHeaderPolicyNonStandardHeadersRequest) (*RPCSuccess, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateHTTPHeaderPolicyNonStandardHeaders not implemented")
}
func (*UnimplementedHTTPHeaderPolicyServiceServer) UpdateHTTPHeaderPolicyCORS(context.Context, *UpdateHTTPHeaderPolicyCORSRequest) (*RPCSuccess, error) { func (*UnimplementedHTTPHeaderPolicyServiceServer) UpdateHTTPHeaderPolicyCORS(context.Context, *UpdateHTTPHeaderPolicyCORSRequest) (*RPCSuccess, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateHTTPHeaderPolicyCORS not implemented") return nil, status.Errorf(codes.Unimplemented, "method UpdateHTTPHeaderPolicyCORS not implemented")
} }
@@ -1165,6 +1267,24 @@ func _HTTPHeaderPolicyService_UpdateHTTPHeaderPolicyDeletingHeaders_Handler(srv
return interceptor(ctx, in, info, handler) return interceptor(ctx, in, info, handler)
} }
func _HTTPHeaderPolicyService_UpdateHTTPHeaderPolicyNonStandardHeaders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateHTTPHeaderPolicyNonStandardHeadersRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(HTTPHeaderPolicyServiceServer).UpdateHTTPHeaderPolicyNonStandardHeaders(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.HTTPHeaderPolicyService/UpdateHTTPHeaderPolicyNonStandardHeaders",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(HTTPHeaderPolicyServiceServer).UpdateHTTPHeaderPolicyNonStandardHeaders(ctx, req.(*UpdateHTTPHeaderPolicyNonStandardHeadersRequest))
}
return interceptor(ctx, in, info, handler)
}
func _HTTPHeaderPolicyService_UpdateHTTPHeaderPolicyCORS_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { func _HTTPHeaderPolicyService_UpdateHTTPHeaderPolicyCORS_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateHTTPHeaderPolicyCORSRequest) in := new(UpdateHTTPHeaderPolicyCORSRequest)
if err := dec(in); err != nil { if err := dec(in); err != nil {
@@ -1215,6 +1335,10 @@ var _HTTPHeaderPolicyService_serviceDesc = grpc.ServiceDesc{
MethodName: "updateHTTPHeaderPolicyDeletingHeaders", MethodName: "updateHTTPHeaderPolicyDeletingHeaders",
Handler: _HTTPHeaderPolicyService_UpdateHTTPHeaderPolicyDeletingHeaders_Handler, Handler: _HTTPHeaderPolicyService_UpdateHTTPHeaderPolicyDeletingHeaders_Handler,
}, },
{
MethodName: "updateHTTPHeaderPolicyNonStandardHeaders",
Handler: _HTTPHeaderPolicyService_UpdateHTTPHeaderPolicyNonStandardHeaders_Handler,
},
{ {
MethodName: "updateHTTPHeaderPolicyCORS", MethodName: "updateHTTPHeaderPolicyCORS",
Handler: _HTTPHeaderPolicyService_UpdateHTTPHeaderPolicyCORS_Handler, Handler: _HTTPHeaderPolicyService_UpdateHTTPHeaderPolicyCORS_Handler,
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+422 -118
View File
@@ -1706,6 +1706,157 @@ func (x *VerifyNSDomainResponse) GetErrorMessage() string {
return "" return ""
} }
// 查询记录健康检查全局设置
type FindNSDomainRecordsHealthCheckRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
NsDomainId int64 `protobuf:"varint,1,opt,name=nsDomainId,proto3" json:"nsDomainId,omitempty"` // 域名ID
}
func (x *FindNSDomainRecordsHealthCheckRequest) Reset() {
*x = FindNSDomainRecordsHealthCheckRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_ns_domain_proto_msgTypes[30]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindNSDomainRecordsHealthCheckRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindNSDomainRecordsHealthCheckRequest) ProtoMessage() {}
func (x *FindNSDomainRecordsHealthCheckRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_ns_domain_proto_msgTypes[30]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FindNSDomainRecordsHealthCheckRequest.ProtoReflect.Descriptor instead.
func (*FindNSDomainRecordsHealthCheckRequest) Descriptor() ([]byte, []int) {
return file_service_ns_domain_proto_rawDescGZIP(), []int{30}
}
func (x *FindNSDomainRecordsHealthCheckRequest) GetNsDomainId() int64 {
if x != nil {
return x.NsDomainId
}
return 0
}
type FindNSDomainRecordsHealthCheckResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
NsDomainRecordsHealthCheckJSON []byte `protobuf:"bytes,1,opt,name=nsDomainRecordsHealthCheckJSON,proto3" json:"nsDomainRecordsHealthCheckJSON,omitempty"` // 健康检查设置
}
func (x *FindNSDomainRecordsHealthCheckResponse) Reset() {
*x = FindNSDomainRecordsHealthCheckResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_ns_domain_proto_msgTypes[31]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindNSDomainRecordsHealthCheckResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindNSDomainRecordsHealthCheckResponse) ProtoMessage() {}
func (x *FindNSDomainRecordsHealthCheckResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_ns_domain_proto_msgTypes[31]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FindNSDomainRecordsHealthCheckResponse.ProtoReflect.Descriptor instead.
func (*FindNSDomainRecordsHealthCheckResponse) Descriptor() ([]byte, []int) {
return file_service_ns_domain_proto_rawDescGZIP(), []int{31}
}
func (x *FindNSDomainRecordsHealthCheckResponse) GetNsDomainRecordsHealthCheckJSON() []byte {
if x != nil {
return x.NsDomainRecordsHealthCheckJSON
}
return nil
}
// 修改记录健康检查全局设置
type UpdateNSDomainRecordsHealthCheckRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
NsDomainId int64 `protobuf:"varint,1,opt,name=nsDomainId,proto3" json:"nsDomainId,omitempty"` // 域名ID
NsDomainRecordsHealthCheckJSON []byte `protobuf:"bytes,2,opt,name=nsDomainRecordsHealthCheckJSON,proto3" json:"nsDomainRecordsHealthCheckJSON,omitempty"` // 健康检查设置
}
func (x *UpdateNSDomainRecordsHealthCheckRequest) Reset() {
*x = UpdateNSDomainRecordsHealthCheckRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_ns_domain_proto_msgTypes[32]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdateNSDomainRecordsHealthCheckRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateNSDomainRecordsHealthCheckRequest) ProtoMessage() {}
func (x *UpdateNSDomainRecordsHealthCheckRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_ns_domain_proto_msgTypes[32]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UpdateNSDomainRecordsHealthCheckRequest.ProtoReflect.Descriptor instead.
func (*UpdateNSDomainRecordsHealthCheckRequest) Descriptor() ([]byte, []int) {
return file_service_ns_domain_proto_rawDescGZIP(), []int{32}
}
func (x *UpdateNSDomainRecordsHealthCheckRequest) GetNsDomainId() int64 {
if x != nil {
return x.NsDomainId
}
return 0
}
func (x *UpdateNSDomainRecordsHealthCheckRequest) GetNsDomainRecordsHealthCheckJSON() []byte {
if x != nil {
return x.NsDomainRecordsHealthCheckJSON
}
return nil
}
var File_service_ns_domain_proto protoreflect.FileDescriptor var File_service_ns_domain_proto protoreflect.FileDescriptor
var file_service_ns_domain_proto_rawDesc = []byte{ var file_service_ns_domain_proto_rawDesc = []byte{
@@ -1883,99 +2034,133 @@ var file_service_ns_domain_proto_rawDesc = []byte{
0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x65, 0x72, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x65, 0x72,
0x72, 0x6f, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x72, 0x6f, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
0x52, 0x0c, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0xa6, 0x52, 0x0c, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x47,
0x0b, 0x0a, 0x0f, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x0a, 0x25, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65,
0x63, 0x65, 0x12, 0x47, 0x0a, 0x0e, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b,
0x6d, 0x61, 0x69, 0x6e, 0x12, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d,
0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6e, 0x73, 0x44,
0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x22, 0x70, 0x0a, 0x26, 0x46, 0x69, 0x6e, 0x64, 0x4e,
0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x0f, 0x63, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x48, 0x65,
0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x12, 0x1a, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
0x65, 0x12, 0x46, 0x0a, 0x1e, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x63,
0x6f, 0x72, 0x64, 0x73, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x4a,
0x53, 0x4f, 0x4e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x1e, 0x6e, 0x73, 0x44, 0x6f, 0x6d,
0x61, 0x69, 0x6e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68,
0x43, 0x68, 0x65, 0x63, 0x6b, 0x4a, 0x53, 0x4f, 0x4e, 0x22, 0x91, 0x01, 0x0a, 0x27, 0x55, 0x70,
0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x63, 0x6f,
0x72, 0x64, 0x73, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69,
0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d,
0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x46, 0x0a, 0x1e, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69,
0x6e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68,
0x65, 0x63, 0x6b, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x1e, 0x6e,
0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x48, 0x65,
0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x4a, 0x53, 0x4f, 0x4e, 0x32, 0x80, 0x0d,
0x0a, 0x0f, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63,
0x65, 0x12, 0x47, 0x0a, 0x0e, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d,
0x61, 0x69, 0x6e, 0x12, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e,
0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a,
0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61,
0x69, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x0f, 0x63, 0x72,
0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x52, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x12, 0x1a, 0x2e,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x0e, 0x75, 0x70, 0x64, 0x61, 0x74, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69,
0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x43,
0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x52, 0x65,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x0e, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65,
0x63, 0x65, 0x73, 0x73, 0x12, 0x47, 0x0a, 0x14, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70,
0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1f, 0x2e, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75,
0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63,
0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x65, 0x73, 0x73, 0x12, 0x47, 0x0a, 0x14, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x44,
0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x3b, 0x0a, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1f, 0x2e, 0x70, 0x62,
0x0e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53,
0x19, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70,
0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x3b, 0x0a, 0x0e,
0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x3d, 0x0a, 0x0f, 0x64, 0x65, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x19,
0x6c, 0x65, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x12, 0x1a, 0x2e, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61,
0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52,
0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x3d, 0x0a, 0x0f, 0x64, 0x65, 0x6c,
0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x41, 0x0a, 0x0c, 0x66, 0x69, 0x6e, 0x65, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x12, 0x1a, 0x2e, 0x70,
0x64, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x17, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e,
0x69, 0x6e, 0x64, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50,
0x73, 0x74, 0x1a, 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x44, 0x6f, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x41, 0x0a, 0x0c, 0x66, 0x69, 0x6e, 0x64,
0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x59, 0x0a, 0x14, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x17, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69,
0x66, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x57, 0x69, 0x74, 0x68, 0x6e, 0x64, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x74, 0x1a, 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x44, 0x6f, 0x6d,
0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x59, 0x0a, 0x14, 0x66,
0x69, 0x6e, 0x64, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x57, 0x69, 0x74, 0x68, 0x4e,
0x61, 0x6d, 0x65, 0x12, 0x1f, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x44,
0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53,
0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x74, 0x0a, 0x1d, 0x66, 0x69, 0x6e, 0x64, 0x56, 0x65,
0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4f, 0x6e,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x74, 0x0a, 0x1d, 0x66, 0x69, 0x6e, 0x64, 0x56, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x28, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e,
0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4f, 0x64, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69,
0x6e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x28, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x4f, 0x6e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x6e, 0x64, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x74, 0x1a, 0x29, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x56, 0x65, 0x72, 0x69, 0x66,
0x69, 0x6e, 0x4f, 0x6e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x69, 0x65, 0x64, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4f, 0x6e, 0x43, 0x6c, 0x75,
0x73, 0x74, 0x1a, 0x29, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x56, 0x65, 0x72, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47, 0x0a, 0x11,
0x66, 0x69, 0x65, 0x64, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4f, 0x6e, 0x43, 0x6c, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e,
0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47, 0x0a, 0x73, 0x12, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x4e,
0x11, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
0x6e, 0x73, 0x12, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x14, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x44, 0x0a, 0x0d, 0x6c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x44,
0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x12, 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74,
0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x1a, 0x14, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x1a, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x44, 0x0a, 0x0d, 0x6c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x69, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x68, 0x0a, 0x19, 0x6c,
0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x12, 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73,
0x74, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x1a, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x44, 0x6f, 0x6d,
0x61, 0x69, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x68, 0x0a, 0x19,
0x6c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x41, 0x66, 0x74,
0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x62, 0x2e, 0x4c,
0x69, 0x73, 0x74, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x41, 0x66, 0x74, 0x65, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x41, 0x66, 0x74, 0x65,
0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69,
0x25, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72,
0x6e, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x10, 0x66, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e,
0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x54, 0x53, 0x49, 0x47, 0x12, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73,
0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x54, 0x53, 0x49, 0x47, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x10, 0x66, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x44,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x54, 0x53, 0x49, 0x47, 0x12, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x46,
0x64, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x54, 0x53, 0x49, 0x47, 0x52, 0x65, 0x73, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x54, 0x53, 0x49, 0x47, 0x52,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, 0x12, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64,
0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x54, 0x53, 0x49, 0x47, 0x12, 0x1d, 0x2e, 0x70, 0x62, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x54, 0x53, 0x49, 0x47, 0x52, 0x65, 0x73, 0x70,
0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x54, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, 0x12, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53,
0x53, 0x49, 0x47, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x54, 0x53, 0x49, 0x47, 0x12, 0x1d, 0x2e, 0x70, 0x62, 0x2e,
0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x47, 0x0a, 0x0e, 0x65, 0x78, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x54, 0x53,
0x69, 0x73, 0x74, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x12, 0x19, 0x2e, 0x70, 0x49, 0x47, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52,
0x62, 0x2e, 0x45, 0x78, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x47, 0x0a, 0x0e, 0x65, 0x78, 0x69,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x45, 0x78, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x12, 0x19, 0x2e, 0x70, 0x62,
0x73, 0x74, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x2e, 0x45, 0x78, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x52,
0x6e, 0x73, 0x65, 0x12, 0x5f, 0x0a, 0x16, 0x65, 0x78, 0x69, 0x73, 0x74, 0x56, 0x65, 0x72, 0x69, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x45, 0x78, 0x69, 0x73,
0x66, 0x69, 0x65, 0x64, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x12, 0x21, 0x2e, 0x74, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x70, 0x62, 0x2e, 0x45, 0x78, 0x69, 0x73, 0x74, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x73, 0x65, 0x12, 0x5f, 0x0a, 0x16, 0x65, 0x78, 0x69, 0x73, 0x74, 0x56, 0x65, 0x72, 0x69, 0x66,
0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x69, 0x65, 0x64, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x12, 0x21, 0x2e, 0x70,
0x1a, 0x22, 0x2e, 0x70, 0x62, 0x2e, 0x45, 0x78, 0x69, 0x73, 0x74, 0x56, 0x65, 0x72, 0x69, 0x66, 0x62, 0x2e, 0x45, 0x78, 0x69, 0x73, 0x74, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x4e,
0x69, 0x65, 0x64, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x68, 0x0a, 0x19, 0x66, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x44, 0x6f, 0x22, 0x2e, 0x70, 0x62, 0x2e, 0x45, 0x78, 0x69, 0x73, 0x74, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69,
0x6d, 0x61, 0x69, 0x6e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x66, 0x65, 0x64, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x6f, 0x12, 0x24, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x6e, 0x73, 0x65, 0x12, 0x68, 0x0a, 0x19, 0x66, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x44, 0x6f, 0x6d,
0x61, 0x69, 0x6e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x66, 0x6f, 0x61, 0x69, 0x6e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x66, 0x6f,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61,
0x64, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x69, 0x69, 0x6e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x66, 0x6f, 0x52,
0x6e, 0x67, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64,
0x0a, 0x0e, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x69, 0x6e,
0x12, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x4e, 0x53, 0x44, 0x6f, 0x67, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47, 0x0a,
0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x70, 0x62, 0x0e, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12,
0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x4e, 0x53, 0x44, 0x6f, 0x6d,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x70, 0x62, 0x2e,
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x77, 0x0a, 0x1e, 0x66, 0x69, 0x6e, 0x64, 0x4e, 0x53,
0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x48, 0x65, 0x61,
0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x29, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69,
0x6e, 0x64, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64,
0x73, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x44,
0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x48, 0x65, 0x61, 0x6c,
0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
0x5f, 0x0a, 0x20, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69,
0x6e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68,
0x65, 0x63, 0x6b, 0x12, 0x2b, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e,
0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x48, 0x65,
0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73,
0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
} }
var ( var (
@@ -1990,7 +2175,7 @@ func file_service_ns_domain_proto_rawDescGZIP() []byte {
return file_service_ns_domain_proto_rawDescData return file_service_ns_domain_proto_rawDescData
} }
var file_service_ns_domain_proto_msgTypes = make([]protoimpl.MessageInfo, 30) var file_service_ns_domain_proto_msgTypes = make([]protoimpl.MessageInfo, 33)
var file_service_ns_domain_proto_goTypes = []interface{}{ var file_service_ns_domain_proto_goTypes = []interface{}{
(*CreateNSDomainRequest)(nil), // 0: pb.CreateNSDomainRequest (*CreateNSDomainRequest)(nil), // 0: pb.CreateNSDomainRequest
(*CreateNSDomainResponse)(nil), // 1: pb.CreateNSDomainResponse (*CreateNSDomainResponse)(nil), // 1: pb.CreateNSDomainResponse
@@ -2022,16 +2207,19 @@ var file_service_ns_domain_proto_goTypes = []interface{}{
(*FindNSDomainVerifyingInfoResponse)(nil), // 27: pb.FindNSDomainVerifyingInfoResponse (*FindNSDomainVerifyingInfoResponse)(nil), // 27: pb.FindNSDomainVerifyingInfoResponse
(*VerifyNSDomainRequest)(nil), // 28: pb.VerifyNSDomainRequest (*VerifyNSDomainRequest)(nil), // 28: pb.VerifyNSDomainRequest
(*VerifyNSDomainResponse)(nil), // 29: pb.VerifyNSDomainResponse (*VerifyNSDomainResponse)(nil), // 29: pb.VerifyNSDomainResponse
(*NSDomain)(nil), // 30: pb.NSDomain (*FindNSDomainRecordsHealthCheckRequest)(nil), // 30: pb.FindNSDomainRecordsHealthCheckRequest
(*RPCSuccess)(nil), // 31: pb.RPCSuccess (*FindNSDomainRecordsHealthCheckResponse)(nil), // 31: pb.FindNSDomainRecordsHealthCheckResponse
(*RPCCountResponse)(nil), // 32: pb.RPCCountResponse (*UpdateNSDomainRecordsHealthCheckRequest)(nil), // 32: pb.UpdateNSDomainRecordsHealthCheckRequest
(*NSDomain)(nil), // 33: pb.NSDomain
(*RPCSuccess)(nil), // 34: pb.RPCSuccess
(*RPCCountResponse)(nil), // 35: pb.RPCCountResponse
} }
var file_service_ns_domain_proto_depIdxs = []int32{ var file_service_ns_domain_proto_depIdxs = []int32{
30, // 0: pb.FindNSDomainResponse.nsDomain:type_name -> pb.NSDomain 33, // 0: pb.FindNSDomainResponse.nsDomain:type_name -> pb.NSDomain
30, // 1: pb.FindNSDomainWithNameResponse.nsDomain:type_name -> pb.NSDomain 33, // 1: pb.FindNSDomainWithNameResponse.nsDomain:type_name -> pb.NSDomain
30, // 2: pb.FindVerifiedNSDomainOnClusterResponse.nsDomain:type_name -> pb.NSDomain 33, // 2: pb.FindVerifiedNSDomainOnClusterResponse.nsDomain:type_name -> pb.NSDomain
30, // 3: pb.ListNSDomainsResponse.nsDomains:type_name -> pb.NSDomain 33, // 3: pb.ListNSDomainsResponse.nsDomains:type_name -> pb.NSDomain
30, // 4: pb.ListNSDomainsAfterVersionResponse.nsDomains:type_name -> pb.NSDomain 33, // 4: pb.ListNSDomainsAfterVersionResponse.nsDomains:type_name -> pb.NSDomain
0, // 5: pb.NSDomainService.createNSDomain:input_type -> pb.CreateNSDomainRequest 0, // 5: pb.NSDomainService.createNSDomain:input_type -> pb.CreateNSDomainRequest
2, // 6: pb.NSDomainService.createNSDomains:input_type -> pb.CreateNSDomainsRequest 2, // 6: pb.NSDomainService.createNSDomains:input_type -> pb.CreateNSDomainsRequest
4, // 7: pb.NSDomainService.updateNSDomain:input_type -> pb.UpdateNSDomainRequest 4, // 7: pb.NSDomainService.updateNSDomain:input_type -> pb.UpdateNSDomainRequest
@@ -2050,26 +2238,30 @@ var file_service_ns_domain_proto_depIdxs = []int32{
24, // 20: pb.NSDomainService.existVerifiedNSDomains:input_type -> pb.ExistVerifiedNSDomainsRequest 24, // 20: pb.NSDomainService.existVerifiedNSDomains:input_type -> pb.ExistVerifiedNSDomainsRequest
26, // 21: pb.NSDomainService.findNSDomainVerifyingInfo:input_type -> pb.FindNSDomainVerifyingInfoRequest 26, // 21: pb.NSDomainService.findNSDomainVerifyingInfo:input_type -> pb.FindNSDomainVerifyingInfoRequest
28, // 22: pb.NSDomainService.verifyNSDomain:input_type -> pb.VerifyNSDomainRequest 28, // 22: pb.NSDomainService.verifyNSDomain:input_type -> pb.VerifyNSDomainRequest
1, // 23: pb.NSDomainService.createNSDomain:output_type -> pb.CreateNSDomainResponse 30, // 23: pb.NSDomainService.findNSDomainRecordsHealthCheck:input_type -> pb.FindNSDomainRecordsHealthCheckRequest
3, // 24: pb.NSDomainService.createNSDomains:output_type -> pb.CreateNSDomainsResponse 32, // 24: pb.NSDomainService.updateNSDomainRecordsHealthCheck:input_type -> pb.UpdateNSDomainRecordsHealthCheckRequest
31, // 25: pb.NSDomainService.updateNSDomain:output_type -> pb.RPCSuccess 1, // 25: pb.NSDomainService.createNSDomain:output_type -> pb.CreateNSDomainResponse
31, // 26: pb.NSDomainService.updateNSDomainStatus:output_type -> pb.RPCSuccess 3, // 26: pb.NSDomainService.createNSDomains:output_type -> pb.CreateNSDomainsResponse
31, // 27: pb.NSDomainService.deleteNSDomain:output_type -> pb.RPCSuccess 34, // 27: pb.NSDomainService.updateNSDomain:output_type -> pb.RPCSuccess
31, // 28: pb.NSDomainService.deleteNSDomains:output_type -> pb.RPCSuccess 34, // 28: pb.NSDomainService.updateNSDomainStatus:output_type -> pb.RPCSuccess
9, // 29: pb.NSDomainService.findNSDomain:output_type -> pb.FindNSDomainResponse 34, // 29: pb.NSDomainService.deleteNSDomain:output_type -> pb.RPCSuccess
11, // 30: pb.NSDomainService.findNSDomainWithName:output_type -> pb.FindNSDomainWithNameResponse 34, // 30: pb.NSDomainService.deleteNSDomains:output_type -> pb.RPCSuccess
13, // 31: pb.NSDomainService.findVerifiedNSDomainOnCluster:output_type -> pb.FindVerifiedNSDomainOnClusterResponse 9, // 31: pb.NSDomainService.findNSDomain:output_type -> pb.FindNSDomainResponse
32, // 32: pb.NSDomainService.countAllNSDomains:output_type -> pb.RPCCountResponse 11, // 32: pb.NSDomainService.findNSDomainWithName:output_type -> pb.FindNSDomainWithNameResponse
16, // 33: pb.NSDomainService.listNSDomains:output_type -> pb.ListNSDomainsResponse 13, // 33: pb.NSDomainService.findVerifiedNSDomainOnCluster:output_type -> pb.FindVerifiedNSDomainOnClusterResponse
18, // 34: pb.NSDomainService.listNSDomainsAfterVersion:output_type -> pb.ListNSDomainsAfterVersionResponse 35, // 34: pb.NSDomainService.countAllNSDomains:output_type -> pb.RPCCountResponse
20, // 35: pb.NSDomainService.findNSDomainTSIG:output_type -> pb.FindNSDomainTSIGResponse 16, // 35: pb.NSDomainService.listNSDomains:output_type -> pb.ListNSDomainsResponse
31, // 36: pb.NSDomainService.updateNSDomainTSIG:output_type -> pb.RPCSuccess 18, // 36: pb.NSDomainService.listNSDomainsAfterVersion:output_type -> pb.ListNSDomainsAfterVersionResponse
23, // 37: pb.NSDomainService.existNSDomains:output_type -> pb.ExistNSDomainsResponse 20, // 37: pb.NSDomainService.findNSDomainTSIG:output_type -> pb.FindNSDomainTSIGResponse
25, // 38: pb.NSDomainService.existVerifiedNSDomains:output_type -> pb.ExistVerifiedNSDomainsResponse 34, // 38: pb.NSDomainService.updateNSDomainTSIG:output_type -> pb.RPCSuccess
27, // 39: pb.NSDomainService.findNSDomainVerifyingInfo:output_type -> pb.FindNSDomainVerifyingInfoResponse 23, // 39: pb.NSDomainService.existNSDomains:output_type -> pb.ExistNSDomainsResponse
29, // 40: pb.NSDomainService.verifyNSDomain:output_type -> pb.VerifyNSDomainResponse 25, // 40: pb.NSDomainService.existVerifiedNSDomains:output_type -> pb.ExistVerifiedNSDomainsResponse
23, // [23:41] is the sub-list for method output_type 27, // 41: pb.NSDomainService.findNSDomainVerifyingInfo:output_type -> pb.FindNSDomainVerifyingInfoResponse
5, // [5:23] is the sub-list for method input_type 29, // 42: pb.NSDomainService.verifyNSDomain:output_type -> pb.VerifyNSDomainResponse
31, // 43: pb.NSDomainService.findNSDomainRecordsHealthCheck:output_type -> pb.FindNSDomainRecordsHealthCheckResponse
34, // 44: pb.NSDomainService.updateNSDomainRecordsHealthCheck:output_type -> pb.RPCSuccess
25, // [25:45] is the sub-list for method output_type
5, // [5:25] is the sub-list for method input_type
5, // [5:5] is the sub-list for extension type_name 5, // [5:5] is the sub-list for extension type_name
5, // [5:5] is the sub-list for extension extendee 5, // [5:5] is the sub-list for extension extendee
0, // [0:5] is the sub-list for field type_name 0, // [0:5] is the sub-list for field type_name
@@ -2443,6 +2635,42 @@ func file_service_ns_domain_proto_init() {
return nil return nil
} }
} }
file_service_ns_domain_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindNSDomainRecordsHealthCheckRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_ns_domain_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindNSDomainRecordsHealthCheckResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_ns_domain_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UpdateNSDomainRecordsHealthCheckRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
} }
type x struct{} type x struct{}
out := protoimpl.TypeBuilder{ out := protoimpl.TypeBuilder{
@@ -2450,7 +2678,7 @@ func file_service_ns_domain_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_service_ns_domain_proto_rawDesc, RawDescriptor: file_service_ns_domain_proto_rawDesc,
NumEnums: 0, NumEnums: 0,
NumMessages: 30, NumMessages: 33,
NumExtensions: 0, NumExtensions: 0,
NumServices: 1, NumServices: 1,
}, },
@@ -2512,6 +2740,10 @@ type NSDomainServiceClient interface {
FindNSDomainVerifyingInfo(ctx context.Context, in *FindNSDomainVerifyingInfoRequest, opts ...grpc.CallOption) (*FindNSDomainVerifyingInfoResponse, error) FindNSDomainVerifyingInfo(ctx context.Context, in *FindNSDomainVerifyingInfoRequest, opts ...grpc.CallOption) (*FindNSDomainVerifyingInfoResponse, error)
// 验证域名信息 // 验证域名信息
VerifyNSDomain(ctx context.Context, in *VerifyNSDomainRequest, opts ...grpc.CallOption) (*VerifyNSDomainResponse, error) VerifyNSDomain(ctx context.Context, in *VerifyNSDomainRequest, opts ...grpc.CallOption) (*VerifyNSDomainResponse, error)
// 查询记录健康检查全局设置
FindNSDomainRecordsHealthCheck(ctx context.Context, in *FindNSDomainRecordsHealthCheckRequest, opts ...grpc.CallOption) (*FindNSDomainRecordsHealthCheckResponse, error)
// 修改记录健康检查全局设置
UpdateNSDomainRecordsHealthCheck(ctx context.Context, in *UpdateNSDomainRecordsHealthCheckRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
} }
type nSDomainServiceClient struct { type nSDomainServiceClient struct {
@@ -2684,6 +2916,24 @@ func (c *nSDomainServiceClient) VerifyNSDomain(ctx context.Context, in *VerifyNS
return out, nil return out, nil
} }
func (c *nSDomainServiceClient) FindNSDomainRecordsHealthCheck(ctx context.Context, in *FindNSDomainRecordsHealthCheckRequest, opts ...grpc.CallOption) (*FindNSDomainRecordsHealthCheckResponse, error) {
out := new(FindNSDomainRecordsHealthCheckResponse)
err := c.cc.Invoke(ctx, "/pb.NSDomainService/findNSDomainRecordsHealthCheck", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nSDomainServiceClient) UpdateNSDomainRecordsHealthCheck(ctx context.Context, in *UpdateNSDomainRecordsHealthCheckRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
out := new(RPCSuccess)
err := c.cc.Invoke(ctx, "/pb.NSDomainService/updateNSDomainRecordsHealthCheck", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// NSDomainServiceServer is the server API for NSDomainService service. // NSDomainServiceServer is the server API for NSDomainService service.
type NSDomainServiceServer interface { type NSDomainServiceServer interface {
// 创建单个域名 // 创建单个域名
@@ -2722,6 +2972,10 @@ type NSDomainServiceServer interface {
FindNSDomainVerifyingInfo(context.Context, *FindNSDomainVerifyingInfoRequest) (*FindNSDomainVerifyingInfoResponse, error) FindNSDomainVerifyingInfo(context.Context, *FindNSDomainVerifyingInfoRequest) (*FindNSDomainVerifyingInfoResponse, error)
// 验证域名信息 // 验证域名信息
VerifyNSDomain(context.Context, *VerifyNSDomainRequest) (*VerifyNSDomainResponse, error) VerifyNSDomain(context.Context, *VerifyNSDomainRequest) (*VerifyNSDomainResponse, error)
// 查询记录健康检查全局设置
FindNSDomainRecordsHealthCheck(context.Context, *FindNSDomainRecordsHealthCheckRequest) (*FindNSDomainRecordsHealthCheckResponse, error)
// 修改记录健康检查全局设置
UpdateNSDomainRecordsHealthCheck(context.Context, *UpdateNSDomainRecordsHealthCheckRequest) (*RPCSuccess, error)
} }
// UnimplementedNSDomainServiceServer can be embedded to have forward compatible implementations. // UnimplementedNSDomainServiceServer can be embedded to have forward compatible implementations.
@@ -2782,6 +3036,12 @@ func (*UnimplementedNSDomainServiceServer) FindNSDomainVerifyingInfo(context.Con
func (*UnimplementedNSDomainServiceServer) VerifyNSDomain(context.Context, *VerifyNSDomainRequest) (*VerifyNSDomainResponse, error) { func (*UnimplementedNSDomainServiceServer) VerifyNSDomain(context.Context, *VerifyNSDomainRequest) (*VerifyNSDomainResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method VerifyNSDomain not implemented") return nil, status.Errorf(codes.Unimplemented, "method VerifyNSDomain not implemented")
} }
func (*UnimplementedNSDomainServiceServer) FindNSDomainRecordsHealthCheck(context.Context, *FindNSDomainRecordsHealthCheckRequest) (*FindNSDomainRecordsHealthCheckResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindNSDomainRecordsHealthCheck not implemented")
}
func (*UnimplementedNSDomainServiceServer) UpdateNSDomainRecordsHealthCheck(context.Context, *UpdateNSDomainRecordsHealthCheckRequest) (*RPCSuccess, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateNSDomainRecordsHealthCheck not implemented")
}
func RegisterNSDomainServiceServer(s *grpc.Server, srv NSDomainServiceServer) { func RegisterNSDomainServiceServer(s *grpc.Server, srv NSDomainServiceServer) {
s.RegisterService(&_NSDomainService_serviceDesc, srv) s.RegisterService(&_NSDomainService_serviceDesc, srv)
@@ -3111,6 +3371,42 @@ func _NSDomainService_VerifyNSDomain_Handler(srv interface{}, ctx context.Contex
return interceptor(ctx, in, info, handler) return interceptor(ctx, in, info, handler)
} }
func _NSDomainService_FindNSDomainRecordsHealthCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FindNSDomainRecordsHealthCheckRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NSDomainServiceServer).FindNSDomainRecordsHealthCheck(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.NSDomainService/FindNSDomainRecordsHealthCheck",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NSDomainServiceServer).FindNSDomainRecordsHealthCheck(ctx, req.(*FindNSDomainRecordsHealthCheckRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NSDomainService_UpdateNSDomainRecordsHealthCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateNSDomainRecordsHealthCheckRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NSDomainServiceServer).UpdateNSDomainRecordsHealthCheck(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.NSDomainService/UpdateNSDomainRecordsHealthCheck",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NSDomainServiceServer).UpdateNSDomainRecordsHealthCheck(ctx, req.(*UpdateNSDomainRecordsHealthCheckRequest))
}
return interceptor(ctx, in, info, handler)
}
var _NSDomainService_serviceDesc = grpc.ServiceDesc{ var _NSDomainService_serviceDesc = grpc.ServiceDesc{
ServiceName: "pb.NSDomainService", ServiceName: "pb.NSDomainService",
HandlerType: (*NSDomainServiceServer)(nil), HandlerType: (*NSDomainServiceServer)(nil),
@@ -3187,6 +3483,14 @@ var _NSDomainService_serviceDesc = grpc.ServiceDesc{
MethodName: "verifyNSDomain", MethodName: "verifyNSDomain",
Handler: _NSDomainService_VerifyNSDomain_Handler, Handler: _NSDomainService_VerifyNSDomain_Handler,
}, },
{
MethodName: "findNSDomainRecordsHealthCheck",
Handler: _NSDomainService_FindNSDomainRecordsHealthCheck_Handler,
},
{
MethodName: "updateNSDomainRecordsHealthCheck",
Handler: _NSDomainService_UpdateNSDomainRecordsHealthCheck_Handler,
},
}, },
Streams: []grpc.StreamDesc{}, Streams: []grpc.StreamDesc{},
Metadata: "service_ns_domain.proto", Metadata: "service_ns_domain.proto",
+599 -163
View File
@@ -1259,6 +1259,8 @@ type ListNSRecordsRequest struct {
TypeDesc bool `protobuf:"varint,11,opt,name=typeDesc,proto3" json:"typeDesc,omitempty"` TypeDesc bool `protobuf:"varint,11,opt,name=typeDesc,proto3" json:"typeDesc,omitempty"`
TtlAsc bool `protobuf:"varint,12,opt,name=ttlAsc,proto3" json:"ttlAsc,omitempty"` TtlAsc bool `protobuf:"varint,12,opt,name=ttlAsc,proto3" json:"ttlAsc,omitempty"`
TtlDesc bool `protobuf:"varint,13,opt,name=ttlDesc,proto3" json:"ttlDesc,omitempty"` TtlDesc bool `protobuf:"varint,13,opt,name=ttlDesc,proto3" json:"ttlDesc,omitempty"`
UpAsc bool `protobuf:"varint,14,opt,name=upAsc,proto3" json:"upAsc,omitempty"`
UpDesc bool `protobuf:"varint,15,opt,name=upDesc,proto3" json:"upDesc,omitempty"`
Offset int64 `protobuf:"varint,5,opt,name=offset,proto3" json:"offset,omitempty"` Offset int64 `protobuf:"varint,5,opt,name=offset,proto3" json:"offset,omitempty"`
Size int64 `protobuf:"varint,6,opt,name=size,proto3" json:"size,omitempty"` Size int64 `protobuf:"varint,6,opt,name=size,proto3" json:"size,omitempty"`
} }
@@ -1373,6 +1375,20 @@ func (x *ListNSRecordsRequest) GetTtlDesc() bool {
return false return false
} }
func (x *ListNSRecordsRequest) GetUpAsc() bool {
if x != nil {
return x.UpAsc
}
return false
}
func (x *ListNSRecordsRequest) GetUpDesc() bool {
if x != nil {
return x.UpDesc
}
return false
}
func (x *ListNSRecordsRequest) GetOffset() int64 { func (x *ListNSRecordsRequest) GetOffset() int64 {
if x != nil { if x != nil {
return x.Offset return x.Offset
@@ -1854,6 +1870,213 @@ func (x *ListNSRecordsAfterVersionResponse) GetNsRecords() []*NSRecord {
return nil return nil
} }
// 查询记录健康检查设置
type FindNSRecordHealthCheckRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
NsRecordId int64 `protobuf:"varint,1,opt,name=nsRecordId,proto3" json:"nsRecordId,omitempty"` // 记录ID
}
func (x *FindNSRecordHealthCheckRequest) Reset() {
*x = FindNSRecordHealthCheckRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_ns_record_proto_msgTypes[23]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindNSRecordHealthCheckRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindNSRecordHealthCheckRequest) ProtoMessage() {}
func (x *FindNSRecordHealthCheckRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_ns_record_proto_msgTypes[23]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FindNSRecordHealthCheckRequest.ProtoReflect.Descriptor instead.
func (*FindNSRecordHealthCheckRequest) Descriptor() ([]byte, []int) {
return file_service_ns_record_proto_rawDescGZIP(), []int{23}
}
func (x *FindNSRecordHealthCheckRequest) GetNsRecordId() int64 {
if x != nil {
return x.NsRecordId
}
return 0
}
type FindNSRecordHealthCheckResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
NsRecordHealthCheckJSON []byte `protobuf:"bytes,1,opt,name=nsRecordHealthCheckJSON,proto3" json:"nsRecordHealthCheckJSON,omitempty"` // 记录健康检查配置
}
func (x *FindNSRecordHealthCheckResponse) Reset() {
*x = FindNSRecordHealthCheckResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_ns_record_proto_msgTypes[24]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindNSRecordHealthCheckResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindNSRecordHealthCheckResponse) ProtoMessage() {}
func (x *FindNSRecordHealthCheckResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_ns_record_proto_msgTypes[24]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FindNSRecordHealthCheckResponse.ProtoReflect.Descriptor instead.
func (*FindNSRecordHealthCheckResponse) Descriptor() ([]byte, []int) {
return file_service_ns_record_proto_rawDescGZIP(), []int{24}
}
func (x *FindNSRecordHealthCheckResponse) GetNsRecordHealthCheckJSON() []byte {
if x != nil {
return x.NsRecordHealthCheckJSON
}
return nil
}
// 修改记录健康检查设置
type UpdateNSRecordHealthCheckRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
NsRecordId int64 `protobuf:"varint,1,opt,name=nsRecordId,proto3" json:"nsRecordId,omitempty"` // 记录ID
NsRecordHealthCheckJSON []byte `protobuf:"bytes,2,opt,name=nsRecordHealthCheckJSON,proto3" json:"nsRecordHealthCheckJSON,omitempty"` // 记录健康检查配置
}
func (x *UpdateNSRecordHealthCheckRequest) Reset() {
*x = UpdateNSRecordHealthCheckRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_ns_record_proto_msgTypes[25]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdateNSRecordHealthCheckRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateNSRecordHealthCheckRequest) ProtoMessage() {}
func (x *UpdateNSRecordHealthCheckRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_ns_record_proto_msgTypes[25]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UpdateNSRecordHealthCheckRequest.ProtoReflect.Descriptor instead.
func (*UpdateNSRecordHealthCheckRequest) Descriptor() ([]byte, []int) {
return file_service_ns_record_proto_rawDescGZIP(), []int{25}
}
func (x *UpdateNSRecordHealthCheckRequest) GetNsRecordId() int64 {
if x != nil {
return x.NsRecordId
}
return 0
}
func (x *UpdateNSRecordHealthCheckRequest) GetNsRecordHealthCheckJSON() []byte {
if x != nil {
return x.NsRecordHealthCheckJSON
}
return nil
}
// 手动修改记录在线状态
type UpdateNSRecordIsUpRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
NsRecordId int64 `protobuf:"varint,1,opt,name=nsRecordId,proto3" json:"nsRecordId,omitempty"` // 记录ID
IsUp bool `protobuf:"varint,2,opt,name=isUp,proto3" json:"isUp,omitempty"` // 是否在线
}
func (x *UpdateNSRecordIsUpRequest) Reset() {
*x = UpdateNSRecordIsUpRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_ns_record_proto_msgTypes[26]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdateNSRecordIsUpRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateNSRecordIsUpRequest) ProtoMessage() {}
func (x *UpdateNSRecordIsUpRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_ns_record_proto_msgTypes[26]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UpdateNSRecordIsUpRequest.ProtoReflect.Descriptor instead.
func (*UpdateNSRecordIsUpRequest) Descriptor() ([]byte, []int) {
return file_service_ns_record_proto_rawDescGZIP(), []int{26}
}
func (x *UpdateNSRecordIsUpRequest) GetNsRecordId() int64 {
if x != nil {
return x.NsRecordId
}
return 0
}
func (x *UpdateNSRecordIsUpRequest) GetIsUp() bool {
if x != nil {
return x.IsUp
}
return false
}
type ImportNSRecordsRequest_Record struct { type ImportNSRecordsRequest_Record struct {
state protoimpl.MessageState state protoimpl.MessageState
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
@@ -1876,7 +2099,7 @@ type ImportNSRecordsRequest_Record struct {
func (x *ImportNSRecordsRequest_Record) Reset() { func (x *ImportNSRecordsRequest_Record) Reset() {
*x = ImportNSRecordsRequest_Record{} *x = ImportNSRecordsRequest_Record{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_service_ns_record_proto_msgTypes[23] mi := &file_service_ns_record_proto_msgTypes[27]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -1889,7 +2112,7 @@ func (x *ImportNSRecordsRequest_Record) String() string {
func (*ImportNSRecordsRequest_Record) ProtoMessage() {} func (*ImportNSRecordsRequest_Record) ProtoMessage() {}
func (x *ImportNSRecordsRequest_Record) ProtoReflect() protoreflect.Message { func (x *ImportNSRecordsRequest_Record) ProtoReflect() protoreflect.Message {
mi := &file_service_ns_record_proto_msgTypes[23] mi := &file_service_ns_record_proto_msgTypes[27]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -2203,7 +2426,7 @@ var file_service_ns_record_proto_rawDesc = []byte{
0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49,
0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20,
0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0xf2, 0x02, 0x0a, 0x14, 0x4c, 0x69, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0xa0, 0x03, 0x0a, 0x14, 0x4c, 0x69,
0x73, 0x74, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64,
0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e,
@@ -2224,142 +2447,183 @@ var file_service_ns_record_proto_rawDesc = []byte{
0x12, 0x16, 0x0a, 0x06, 0x74, 0x74, 0x6c, 0x41, 0x73, 0x63, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x08, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x74, 0x6c, 0x41, 0x73, 0x63, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x08,
0x52, 0x06, 0x74, 0x74, 0x6c, 0x41, 0x73, 0x63, 0x12, 0x18, 0x0a, 0x07, 0x74, 0x74, 0x6c, 0x44, 0x52, 0x06, 0x74, 0x74, 0x6c, 0x41, 0x73, 0x63, 0x12, 0x18, 0x0a, 0x07, 0x74, 0x74, 0x6c, 0x44,
0x65, 0x73, 0x63, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x74, 0x74, 0x6c, 0x44, 0x65, 0x65, 0x73, 0x63, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x74, 0x74, 0x6c, 0x44, 0x65,
0x73, 0x63, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x73, 0x63, 0x12, 0x14, 0x0a, 0x05, 0x75, 0x70, 0x41, 0x73, 0x63, 0x18, 0x0e, 0x20, 0x01, 0x28,
0x28, 0x03, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x08, 0x52, 0x05, 0x75, 0x70, 0x41, 0x73, 0x63, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x70, 0x44, 0x65,
0x7a, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x43, 0x73, 0x63, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x75, 0x70, 0x44, 0x65, 0x73, 0x63,
0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x09, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65,
0x6f, 0x72, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x43, 0x0a, 0x15,
0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x09, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73,
0x72, 0x64, 0x73, 0x22, 0x35, 0x0a, 0x13, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x52, 0x65, 0x63,
0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x73,
0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a,
0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x49, 0x64, 0x22, 0x40, 0x0a, 0x14, 0x46, 0x69,
0x6e, 0x64, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x73, 0x65, 0x12, 0x28, 0x0a, 0x08, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x18, 0x01,
0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f,
0x72, 0x64, 0x52, 0x08, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x22, 0x6c, 0x0a, 0x22,
0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x57, 0x69, 0x74, 0x68,
0x4e, 0x61, 0x6d, 0x65, 0x41, 0x6e, 0x64, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64,
0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e,
0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03,
0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x4f, 0x0a, 0x23, 0x46, 0x69,
0x6e, 0x64, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x61,
0x6d, 0x65, 0x41, 0x6e, 0x64, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
0x65, 0x12, 0x28, 0x0a, 0x08, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x18, 0x01, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72,
0x64, 0x52, 0x08, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x22, 0x6d, 0x0a, 0x23, 0x46,
0x69, 0x6e, 0x64, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x57, 0x69, 0x74, 0x68,
0x4e, 0x61, 0x6d, 0x65, 0x41, 0x6e, 0x64, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64,
0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e,
0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03,
0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x52, 0x0a, 0x24, 0x46, 0x69,
0x6e, 0x64, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4e,
0x61, 0x6d, 0x65, 0x41, 0x6e, 0x64, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x73, 0x65, 0x12, 0x2a, 0x0a, 0x09, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x18,
0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x52, 0x65, 0x63,
0x6f, 0x72, 0x64, 0x52, 0x09, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x22, 0x50,
0x0a, 0x20, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x41,
0x66, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20,
0x01, 0x28, 0x03, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04,
0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65,
0x22, 0x4f, 0x0a, 0x21, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64,
0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x09, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x09, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72,
0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53,
0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x09, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x09, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64,
0x73, 0x32, 0xd3, 0x0a, 0x0a, 0x0f, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x53, 0x65, 0x73, 0x22, 0x35, 0x0a, 0x13, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72,
0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x47, 0x0a, 0x0e, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x73, 0x52, 0x65,
0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6e, 0x73,
0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x49, 0x64, 0x22, 0x40, 0x0a, 0x14, 0x46, 0x69, 0x6e, 0x64,
0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x12, 0x28, 0x0a, 0x08, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01,
0x0a, 0x0f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64,
0x73, 0x12, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x52, 0x08, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x22, 0x6c, 0x0a, 0x22, 0x46, 0x69,
0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e,
0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72,
0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5b, 0x0a, 0x1e, 0x63, 0x72,
0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x57, 0x69, 0x74,
0x68, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x29, 0x2e, 0x70,
0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64,
0x73, 0x57, 0x69, 0x74, 0x68, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x73,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43,
0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x5b, 0x0a, 0x1e, 0x75, 0x70, 0x64, 0x61, 0x74,
0x65, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x57, 0x69, 0x74, 0x68, 0x44, 0x6f,
0x6d, 0x61, 0x69, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x29, 0x2e, 0x70, 0x62, 0x2e, 0x55,
0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x57, 0x69,
0x74, 0x68, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63,
0x63, 0x65, 0x73, 0x73, 0x12, 0x5b, 0x0a, 0x1e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x53,
0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x57, 0x69, 0x74, 0x68, 0x44, 0x6f, 0x6d, 0x61, 0x69,
0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x29, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65,
0x74, 0x65, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x57, 0x69, 0x74, 0x68, 0x44,
0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73,
0x73, 0x12, 0x63, 0x0a, 0x22, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65, 0x63,
0x6f, 0x72, 0x64, 0x73, 0x49, 0x73, 0x4f, 0x6e, 0x57, 0x69, 0x74, 0x68, 0x44, 0x6f, 0x6d, 0x61,
0x69, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x2d, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64,
0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x49, 0x73, 0x4f, 0x6e,
0x57, 0x69, 0x74, 0x68, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53,
0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x3d, 0x0a, 0x0f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74,
0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x49,
0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75,
0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x3b, 0x0a, 0x0e, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e,
0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64,
0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65,
0x73, 0x73, 0x12, 0x3b, 0x0a, 0x0e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65,
0x63, 0x6f, 0x72, 0x64, 0x12, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,
0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12,
0x47, 0x0a, 0x11, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x4e, 0x53, 0x52, 0x65, 0x63,
0x6f, 0x72, 0x64, 0x73, 0x12, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41,
0x6c, 0x6c, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x1a, 0x14, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x43, 0x6f, 0x75, 0x6e, 0x74,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x57, 0x0a, 0x19, 0x63, 0x6f, 0x75, 0x6e,
0x74, 0x41, 0x6c, 0x6c, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x57, 0x69, 0x74,
0x68, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x24, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74,
0x41, 0x6c, 0x6c, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x57, 0x69, 0x74, 0x68,
0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x70, 0x62,
0x2e, 0x52, 0x50, 0x43, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
0x65, 0x12, 0x44, 0x0a, 0x0d, 0x6c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72,
0x64, 0x73, 0x12, 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x52, 0x65,
0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x70,
0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x41, 0x0a, 0x0c, 0x66, 0x69, 0x6e, 0x64, 0x4e,
0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x17, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e,
0x64, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x1a, 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f,
0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6e, 0x0a, 0x1b, 0x66, 0x69,
0x6e, 0x64, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x61, 0x6e, 0x64, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x61,
0x6d, 0x65, 0x41, 0x6e, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x26, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x6d, 0x65, 0x41, 0x6e, 0x64, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x69, 0x6e, 0x64, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x18, 0x01,
0x61, 0x6d, 0x65, 0x41, 0x6e, 0x64, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64,
0x74, 0x1a, 0x27, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
0x6f, 0x72, 0x64, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x61, 0x6d, 0x65, 0x41, 0x6e, 0x64, 0x54, 0x79, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01,
0x70, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x71, 0x0a, 0x1c, 0x66, 0x69, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x4f, 0x0a, 0x23, 0x46, 0x69, 0x6e, 0x64,
0x6e, 0x64, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x61, 0x6d, 0x65,
0x61, 0x6d, 0x65, 0x41, 0x6e, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x27, 0x2e, 0x70, 0x62, 0x2e, 0x41, 0x6e, 0x64, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x57, 0x69, 0x74, 0x28, 0x0a, 0x08, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
0x68, 0x4e, 0x61, 0x6d, 0x65, 0x41, 0x6e, 0x64, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x71, 0x75, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52,
0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x52, 0x08, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x22, 0x6d, 0x0a, 0x23, 0x46, 0x69, 0x6e,
0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x61, 0x6d, 0x65, 0x41, 0x6e, 0x64, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x61,
0x64, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x68, 0x0a, 0x6d, 0x65, 0x41, 0x6e, 0x64, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x19, 0x6c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x41, 0x66, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x18, 0x01,
0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x62, 0x2e, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64,
0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01,
0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x52, 0x0a, 0x24, 0x46, 0x69, 0x6e, 0x64,
0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x61, 0x6d,
0x65, 0x41, 0x6e, 0x64, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x12, 0x2a, 0x0a, 0x09, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x18, 0x01, 0x20,
0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72,
0x64, 0x52, 0x09, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x22, 0x50, 0x0a, 0x20,
0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x41, 0x66, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x41, 0x66, 0x74,
0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x1a, 0x25, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28,
0x72, 0x64, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x03, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x4f,
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x0a, 0x21, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x41,
0x66, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x09, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73,
0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x52, 0x65,
0x63, 0x6f, 0x72, 0x64, 0x52, 0x09, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x22,
0x40, 0x0a, 0x1e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x48,
0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x49, 0x64, 0x18,
0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x49,
0x64, 0x22, 0x5b, 0x0a, 0x1f, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72,
0x64, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x17, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64,
0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x4a, 0x53, 0x4f, 0x4e, 0x18,
0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x17, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x48,
0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x4a, 0x53, 0x4f, 0x4e, 0x22, 0x7c,
0x0a, 0x20, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64,
0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x49, 0x64,
0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64,
0x49, 0x64, 0x12, 0x38, 0x0a, 0x17, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x48, 0x65,
0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x02, 0x20,
0x01, 0x28, 0x0c, 0x52, 0x17, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x48, 0x65, 0x61,
0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x4a, 0x53, 0x4f, 0x4e, 0x22, 0x4f, 0x0a, 0x19,
0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x49, 0x73,
0x55, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x73, 0x52,
0x65, 0x63, 0x6f, 0x72, 0x64, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6e,
0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x73, 0x55,
0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x69, 0x73, 0x55, 0x70, 0x32, 0xcf, 0x0c,
0x0a, 0x0f, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63,
0x65, 0x12, 0x47, 0x0a, 0x0e, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65, 0x63,
0x6f, 0x72, 0x64, 0x12, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e,
0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a,
0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f,
0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x0f, 0x63, 0x72,
0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x1a, 0x2e,
0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72,
0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x43,
0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5b, 0x0a, 0x1e, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65,
0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x57, 0x69, 0x74, 0x68, 0x44, 0x6f, 0x6d,
0x61, 0x69, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x29, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72,
0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x57, 0x69, 0x74,
0x68, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63,
0x65, 0x73, 0x73, 0x12, 0x5b, 0x0a, 0x1e, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52,
0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x57, 0x69, 0x74, 0x68, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e,
0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x29, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74,
0x65, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x57, 0x69, 0x74, 0x68, 0x44, 0x6f,
0x6d, 0x61, 0x69, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73,
0x12, 0x5b, 0x0a, 0x1e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f,
0x72, 0x64, 0x73, 0x57, 0x69, 0x74, 0x68, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4e, 0x61, 0x6d,
0x65, 0x73, 0x12, 0x29, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x53,
0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x57, 0x69, 0x74, 0x68, 0x44, 0x6f, 0x6d, 0x61, 0x69,
0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e,
0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x63, 0x0a,
0x22, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73,
0x49, 0x73, 0x4f, 0x6e, 0x57, 0x69, 0x74, 0x68, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4e, 0x61,
0x6d, 0x65, 0x73, 0x12, 0x2d, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e,
0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x49, 0x73, 0x4f, 0x6e, 0x57, 0x69, 0x74, 0x68,
0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65,
0x73, 0x73, 0x12, 0x3d, 0x0a, 0x0f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4e, 0x53, 0x52, 0x65,
0x63, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72,
0x74, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73,
0x73, 0x12, 0x3b, 0x0a, 0x0e, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65, 0x63,
0x6f, 0x72, 0x64, 0x12, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e,
0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e,
0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x3b,
0x0a, 0x0e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64,
0x12, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65,
0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62,
0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x47, 0x0a, 0x11, 0x63,
0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73,
0x12, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x4e, 0x53,
0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14,
0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x57, 0x0a, 0x19, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c,
0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x61, 0x6d,
0x65, 0x12, 0x24, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x4e,
0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x61, 0x6d, 0x65,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43,
0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x44, 0x0a,
0x0d, 0x6c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x18,
0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64,
0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69,
0x73, 0x74, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x6e, 0x73, 0x65, 0x12, 0x41, 0x0a, 0x0c, 0x66, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x52, 0x65, 0x63,
0x6f, 0x72, 0x64, 0x12, 0x17, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x52,
0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x70,
0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6e, 0x0a, 0x1b, 0x66, 0x69, 0x6e, 0x64, 0x4e, 0x53,
0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x61, 0x6d, 0x65, 0x41, 0x6e,
0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x26, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e,
0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x61, 0x6d, 0x65, 0x41,
0x6e, 0x64, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e,
0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x57,
0x69, 0x74, 0x68, 0x4e, 0x61, 0x6d, 0x65, 0x41, 0x6e, 0x64, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x71, 0x0a, 0x1c, 0x66, 0x69, 0x6e, 0x64, 0x4e, 0x53,
0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x61, 0x6d, 0x65, 0x41,
0x6e, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x27, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64,
0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x61, 0x6d,
0x65, 0x41, 0x6e, 0x64, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
0x28, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72,
0x64, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x61, 0x6d, 0x65, 0x41, 0x6e, 0x64, 0x54, 0x79, 0x70,
0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x68, 0x0a, 0x19, 0x6c, 0x69, 0x73,
0x74, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x56,
0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74,
0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x56, 0x65,
0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x70,
0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x41,
0x66, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x6e, 0x73, 0x65, 0x12, 0x62, 0x0a, 0x17, 0x66, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x52, 0x65, 0x63,
0x6f, 0x72, 0x64, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x22,
0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64,
0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x1a, 0x23, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x52, 0x65,
0x63, 0x6f, 0x72, 0x64, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x19, 0x75, 0x70, 0x64, 0x61, 0x74,
0x65, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43,
0x68, 0x65, 0x63, 0x6b, 0x12, 0x24, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68,
0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e,
0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x43, 0x0a, 0x12, 0x75, 0x70,
0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x49, 0x73, 0x55, 0x70,
0x12, 0x1d, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65,
0x63, 0x6f, 0x72, 0x64, 0x49, 0x73, 0x55, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x42,
0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
} }
var ( var (
@@ -2374,7 +2638,7 @@ func file_service_ns_record_proto_rawDescGZIP() []byte {
return file_service_ns_record_proto_rawDescData return file_service_ns_record_proto_rawDescData
} }
var file_service_ns_record_proto_msgTypes = make([]protoimpl.MessageInfo, 24) var file_service_ns_record_proto_msgTypes = make([]protoimpl.MessageInfo, 28)
var file_service_ns_record_proto_goTypes = []interface{}{ var file_service_ns_record_proto_goTypes = []interface{}{
(*CreateNSRecordRequest)(nil), // 0: pb.CreateNSRecordRequest (*CreateNSRecordRequest)(nil), // 0: pb.CreateNSRecordRequest
(*CreateNSRecordResponse)(nil), // 1: pb.CreateNSRecordResponse (*CreateNSRecordResponse)(nil), // 1: pb.CreateNSRecordResponse
@@ -2399,18 +2663,22 @@ var file_service_ns_record_proto_goTypes = []interface{}{
(*FindNSRecordsWithNameAndTypeResponse)(nil), // 20: pb.FindNSRecordsWithNameAndTypeResponse (*FindNSRecordsWithNameAndTypeResponse)(nil), // 20: pb.FindNSRecordsWithNameAndTypeResponse
(*ListNSRecordsAfterVersionRequest)(nil), // 21: pb.ListNSRecordsAfterVersionRequest (*ListNSRecordsAfterVersionRequest)(nil), // 21: pb.ListNSRecordsAfterVersionRequest
(*ListNSRecordsAfterVersionResponse)(nil), // 22: pb.ListNSRecordsAfterVersionResponse (*ListNSRecordsAfterVersionResponse)(nil), // 22: pb.ListNSRecordsAfterVersionResponse
(*ImportNSRecordsRequest_Record)(nil), // 23: pb.ImportNSRecordsRequest.Record (*FindNSRecordHealthCheckRequest)(nil), // 23: pb.FindNSRecordHealthCheckRequest
(*NSRecord)(nil), // 24: pb.NSRecord (*FindNSRecordHealthCheckResponse)(nil), // 24: pb.FindNSRecordHealthCheckResponse
(*RPCSuccess)(nil), // 25: pb.RPCSuccess (*UpdateNSRecordHealthCheckRequest)(nil), // 25: pb.UpdateNSRecordHealthCheckRequest
(*RPCCountResponse)(nil), // 26: pb.RPCCountResponse (*UpdateNSRecordIsUpRequest)(nil), // 26: pb.UpdateNSRecordIsUpRequest
(*ImportNSRecordsRequest_Record)(nil), // 27: pb.ImportNSRecordsRequest.Record
(*NSRecord)(nil), // 28: pb.NSRecord
(*RPCSuccess)(nil), // 29: pb.RPCSuccess
(*RPCCountResponse)(nil), // 30: pb.RPCCountResponse
} }
var file_service_ns_record_proto_depIdxs = []int32{ var file_service_ns_record_proto_depIdxs = []int32{
23, // 0: pb.ImportNSRecordsRequest.nsRecords:type_name -> pb.ImportNSRecordsRequest.Record 27, // 0: pb.ImportNSRecordsRequest.nsRecords:type_name -> pb.ImportNSRecordsRequest.Record
24, // 1: pb.ListNSRecordsResponse.nsRecords:type_name -> pb.NSRecord 28, // 1: pb.ListNSRecordsResponse.nsRecords:type_name -> pb.NSRecord
24, // 2: pb.FindNSRecordResponse.nsRecord:type_name -> pb.NSRecord 28, // 2: pb.FindNSRecordResponse.nsRecord:type_name -> pb.NSRecord
24, // 3: pb.FindNSRecordWithNameAndTypeResponse.nsRecord:type_name -> pb.NSRecord 28, // 3: pb.FindNSRecordWithNameAndTypeResponse.nsRecord:type_name -> pb.NSRecord
24, // 4: pb.FindNSRecordsWithNameAndTypeResponse.nsRecords:type_name -> pb.NSRecord 28, // 4: pb.FindNSRecordsWithNameAndTypeResponse.nsRecords:type_name -> pb.NSRecord
24, // 5: pb.ListNSRecordsAfterVersionResponse.nsRecords:type_name -> pb.NSRecord 28, // 5: pb.ListNSRecordsAfterVersionResponse.nsRecords:type_name -> pb.NSRecord
0, // 6: pb.NSRecordService.createNSRecord:input_type -> pb.CreateNSRecordRequest 0, // 6: pb.NSRecordService.createNSRecord:input_type -> pb.CreateNSRecordRequest
2, // 7: pb.NSRecordService.createNSRecords:input_type -> pb.CreateNSRecordsRequest 2, // 7: pb.NSRecordService.createNSRecords:input_type -> pb.CreateNSRecordsRequest
4, // 8: pb.NSRecordService.createNSRecordsWithDomainNames:input_type -> pb.CreateNSRecordsWithDomainNamesRequest 4, // 8: pb.NSRecordService.createNSRecordsWithDomainNames:input_type -> pb.CreateNSRecordsWithDomainNamesRequest
@@ -2427,24 +2695,30 @@ var file_service_ns_record_proto_depIdxs = []int32{
17, // 19: pb.NSRecordService.findNSRecordWithNameAndType:input_type -> pb.FindNSRecordWithNameAndTypeRequest 17, // 19: pb.NSRecordService.findNSRecordWithNameAndType:input_type -> pb.FindNSRecordWithNameAndTypeRequest
19, // 20: pb.NSRecordService.findNSRecordsWithNameAndType:input_type -> pb.FindNSRecordsWithNameAndTypeRequest 19, // 20: pb.NSRecordService.findNSRecordsWithNameAndType:input_type -> pb.FindNSRecordsWithNameAndTypeRequest
21, // 21: pb.NSRecordService.listNSRecordsAfterVersion:input_type -> pb.ListNSRecordsAfterVersionRequest 21, // 21: pb.NSRecordService.listNSRecordsAfterVersion:input_type -> pb.ListNSRecordsAfterVersionRequest
1, // 22: pb.NSRecordService.createNSRecord:output_type -> pb.CreateNSRecordResponse 23, // 22: pb.NSRecordService.findNSRecordHealthCheck:input_type -> pb.FindNSRecordHealthCheckRequest
3, // 23: pb.NSRecordService.createNSRecords:output_type -> pb.CreateNSRecordsResponse 25, // 23: pb.NSRecordService.updateNSRecordHealthCheck:input_type -> pb.UpdateNSRecordHealthCheckRequest
25, // 24: pb.NSRecordService.createNSRecordsWithDomainNames:output_type -> pb.RPCSuccess 26, // 24: pb.NSRecordService.updateNSRecordIsUp:input_type -> pb.UpdateNSRecordIsUpRequest
25, // 25: pb.NSRecordService.updateNSRecordsWithDomainNames:output_type -> pb.RPCSuccess 1, // 25: pb.NSRecordService.createNSRecord:output_type -> pb.CreateNSRecordResponse
25, // 26: pb.NSRecordService.deleteNSRecordsWithDomainNames:output_type -> pb.RPCSuccess 3, // 26: pb.NSRecordService.createNSRecords:output_type -> pb.CreateNSRecordsResponse
25, // 27: pb.NSRecordService.updateNSRecordsIsOnWithDomainNames:output_type -> pb.RPCSuccess 29, // 27: pb.NSRecordService.createNSRecordsWithDomainNames:output_type -> pb.RPCSuccess
25, // 28: pb.NSRecordService.importNSRecords:output_type -> pb.RPCSuccess 29, // 28: pb.NSRecordService.updateNSRecordsWithDomainNames:output_type -> pb.RPCSuccess
25, // 29: pb.NSRecordService.updateNSRecord:output_type -> pb.RPCSuccess 29, // 29: pb.NSRecordService.deleteNSRecordsWithDomainNames:output_type -> pb.RPCSuccess
25, // 30: pb.NSRecordService.deleteNSRecord:output_type -> pb.RPCSuccess 29, // 30: pb.NSRecordService.updateNSRecordsIsOnWithDomainNames:output_type -> pb.RPCSuccess
26, // 31: pb.NSRecordService.countAllNSRecords:output_type -> pb.RPCCountResponse 29, // 31: pb.NSRecordService.importNSRecords:output_type -> pb.RPCSuccess
26, // 32: pb.NSRecordService.countAllNSRecordsWithName:output_type -> pb.RPCCountResponse 29, // 32: pb.NSRecordService.updateNSRecord:output_type -> pb.RPCSuccess
14, // 33: pb.NSRecordService.listNSRecords:output_type -> pb.ListNSRecordsResponse 29, // 33: pb.NSRecordService.deleteNSRecord:output_type -> pb.RPCSuccess
16, // 34: pb.NSRecordService.findNSRecord:output_type -> pb.FindNSRecordResponse 30, // 34: pb.NSRecordService.countAllNSRecords:output_type -> pb.RPCCountResponse
18, // 35: pb.NSRecordService.findNSRecordWithNameAndType:output_type -> pb.FindNSRecordWithNameAndTypeResponse 30, // 35: pb.NSRecordService.countAllNSRecordsWithName:output_type -> pb.RPCCountResponse
20, // 36: pb.NSRecordService.findNSRecordsWithNameAndType:output_type -> pb.FindNSRecordsWithNameAndTypeResponse 14, // 36: pb.NSRecordService.listNSRecords:output_type -> pb.ListNSRecordsResponse
22, // 37: pb.NSRecordService.listNSRecordsAfterVersion:output_type -> pb.ListNSRecordsAfterVersionResponse 16, // 37: pb.NSRecordService.findNSRecord:output_type -> pb.FindNSRecordResponse
22, // [22:38] is the sub-list for method output_type 18, // 38: pb.NSRecordService.findNSRecordWithNameAndType:output_type -> pb.FindNSRecordWithNameAndTypeResponse
6, // [6:22] is the sub-list for method input_type 20, // 39: pb.NSRecordService.findNSRecordsWithNameAndType:output_type -> pb.FindNSRecordsWithNameAndTypeResponse
22, // 40: pb.NSRecordService.listNSRecordsAfterVersion:output_type -> pb.ListNSRecordsAfterVersionResponse
24, // 41: pb.NSRecordService.findNSRecordHealthCheck:output_type -> pb.FindNSRecordHealthCheckResponse
29, // 42: pb.NSRecordService.updateNSRecordHealthCheck:output_type -> pb.RPCSuccess
29, // 43: pb.NSRecordService.updateNSRecordIsUp:output_type -> pb.RPCSuccess
25, // [25:44] is the sub-list for method output_type
6, // [6:25] is the sub-list for method input_type
6, // [6:6] is the sub-list for extension type_name 6, // [6:6] is the sub-list for extension type_name
6, // [6:6] is the sub-list for extension extendee 6, // [6:6] is the sub-list for extension extendee
0, // [0:6] is the sub-list for field type_name 0, // [0:6] is the sub-list for field type_name
@@ -2735,6 +3009,54 @@ func file_service_ns_record_proto_init() {
} }
} }
file_service_ns_record_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { file_service_ns_record_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindNSRecordHealthCheckRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_ns_record_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindNSRecordHealthCheckResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_ns_record_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UpdateNSRecordHealthCheckRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_ns_record_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UpdateNSRecordIsUpRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_ns_record_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ImportNSRecordsRequest_Record); i { switch v := v.(*ImportNSRecordsRequest_Record); i {
case 0: case 0:
return &v.state return &v.state
@@ -2753,7 +3075,7 @@ func file_service_ns_record_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_service_ns_record_proto_rawDesc, RawDescriptor: file_service_ns_record_proto_rawDesc,
NumEnums: 0, NumEnums: 0,
NumMessages: 24, NumMessages: 28,
NumExtensions: 0, NumExtensions: 0,
NumServices: 1, NumServices: 1,
}, },
@@ -2811,6 +3133,12 @@ type NSRecordServiceClient interface {
FindNSRecordsWithNameAndType(ctx context.Context, in *FindNSRecordsWithNameAndTypeRequest, opts ...grpc.CallOption) (*FindNSRecordsWithNameAndTypeResponse, error) FindNSRecordsWithNameAndType(ctx context.Context, in *FindNSRecordsWithNameAndTypeRequest, opts ...grpc.CallOption) (*FindNSRecordsWithNameAndTypeResponse, error)
// 根据版本列出一组记录 // 根据版本列出一组记录
ListNSRecordsAfterVersion(ctx context.Context, in *ListNSRecordsAfterVersionRequest, opts ...grpc.CallOption) (*ListNSRecordsAfterVersionResponse, error) ListNSRecordsAfterVersion(ctx context.Context, in *ListNSRecordsAfterVersionRequest, opts ...grpc.CallOption) (*ListNSRecordsAfterVersionResponse, error)
// 查询记录健康检查设置
FindNSRecordHealthCheck(ctx context.Context, in *FindNSRecordHealthCheckRequest, opts ...grpc.CallOption) (*FindNSRecordHealthCheckResponse, error)
// 修改记录健康检查设置
UpdateNSRecordHealthCheck(ctx context.Context, in *UpdateNSRecordHealthCheckRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
// 手动修改记录在线状态
UpdateNSRecordIsUp(ctx context.Context, in *UpdateNSRecordIsUpRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
} }
type nSRecordServiceClient struct { type nSRecordServiceClient struct {
@@ -2965,6 +3293,33 @@ func (c *nSRecordServiceClient) ListNSRecordsAfterVersion(ctx context.Context, i
return out, nil return out, nil
} }
func (c *nSRecordServiceClient) FindNSRecordHealthCheck(ctx context.Context, in *FindNSRecordHealthCheckRequest, opts ...grpc.CallOption) (*FindNSRecordHealthCheckResponse, error) {
out := new(FindNSRecordHealthCheckResponse)
err := c.cc.Invoke(ctx, "/pb.NSRecordService/findNSRecordHealthCheck", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nSRecordServiceClient) UpdateNSRecordHealthCheck(ctx context.Context, in *UpdateNSRecordHealthCheckRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
out := new(RPCSuccess)
err := c.cc.Invoke(ctx, "/pb.NSRecordService/updateNSRecordHealthCheck", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nSRecordServiceClient) UpdateNSRecordIsUp(ctx context.Context, in *UpdateNSRecordIsUpRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
out := new(RPCSuccess)
err := c.cc.Invoke(ctx, "/pb.NSRecordService/updateNSRecordIsUp", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// NSRecordServiceServer is the server API for NSRecordService service. // NSRecordServiceServer is the server API for NSRecordService service.
type NSRecordServiceServer interface { type NSRecordServiceServer interface {
// 创建记录 // 创建记录
@@ -2999,6 +3354,12 @@ type NSRecordServiceServer interface {
FindNSRecordsWithNameAndType(context.Context, *FindNSRecordsWithNameAndTypeRequest) (*FindNSRecordsWithNameAndTypeResponse, error) FindNSRecordsWithNameAndType(context.Context, *FindNSRecordsWithNameAndTypeRequest) (*FindNSRecordsWithNameAndTypeResponse, error)
// 根据版本列出一组记录 // 根据版本列出一组记录
ListNSRecordsAfterVersion(context.Context, *ListNSRecordsAfterVersionRequest) (*ListNSRecordsAfterVersionResponse, error) ListNSRecordsAfterVersion(context.Context, *ListNSRecordsAfterVersionRequest) (*ListNSRecordsAfterVersionResponse, error)
// 查询记录健康检查设置
FindNSRecordHealthCheck(context.Context, *FindNSRecordHealthCheckRequest) (*FindNSRecordHealthCheckResponse, error)
// 修改记录健康检查设置
UpdateNSRecordHealthCheck(context.Context, *UpdateNSRecordHealthCheckRequest) (*RPCSuccess, error)
// 手动修改记录在线状态
UpdateNSRecordIsUp(context.Context, *UpdateNSRecordIsUpRequest) (*RPCSuccess, error)
} }
// UnimplementedNSRecordServiceServer can be embedded to have forward compatible implementations. // UnimplementedNSRecordServiceServer can be embedded to have forward compatible implementations.
@@ -3053,6 +3414,15 @@ func (*UnimplementedNSRecordServiceServer) FindNSRecordsWithNameAndType(context.
func (*UnimplementedNSRecordServiceServer) ListNSRecordsAfterVersion(context.Context, *ListNSRecordsAfterVersionRequest) (*ListNSRecordsAfterVersionResponse, error) { func (*UnimplementedNSRecordServiceServer) ListNSRecordsAfterVersion(context.Context, *ListNSRecordsAfterVersionRequest) (*ListNSRecordsAfterVersionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListNSRecordsAfterVersion not implemented") return nil, status.Errorf(codes.Unimplemented, "method ListNSRecordsAfterVersion not implemented")
} }
func (*UnimplementedNSRecordServiceServer) FindNSRecordHealthCheck(context.Context, *FindNSRecordHealthCheckRequest) (*FindNSRecordHealthCheckResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindNSRecordHealthCheck not implemented")
}
func (*UnimplementedNSRecordServiceServer) UpdateNSRecordHealthCheck(context.Context, *UpdateNSRecordHealthCheckRequest) (*RPCSuccess, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateNSRecordHealthCheck not implemented")
}
func (*UnimplementedNSRecordServiceServer) UpdateNSRecordIsUp(context.Context, *UpdateNSRecordIsUpRequest) (*RPCSuccess, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateNSRecordIsUp not implemented")
}
func RegisterNSRecordServiceServer(s *grpc.Server, srv NSRecordServiceServer) { func RegisterNSRecordServiceServer(s *grpc.Server, srv NSRecordServiceServer) {
s.RegisterService(&_NSRecordService_serviceDesc, srv) s.RegisterService(&_NSRecordService_serviceDesc, srv)
@@ -3346,6 +3716,60 @@ func _NSRecordService_ListNSRecordsAfterVersion_Handler(srv interface{}, ctx con
return interceptor(ctx, in, info, handler) return interceptor(ctx, in, info, handler)
} }
func _NSRecordService_FindNSRecordHealthCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FindNSRecordHealthCheckRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NSRecordServiceServer).FindNSRecordHealthCheck(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.NSRecordService/FindNSRecordHealthCheck",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NSRecordServiceServer).FindNSRecordHealthCheck(ctx, req.(*FindNSRecordHealthCheckRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NSRecordService_UpdateNSRecordHealthCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateNSRecordHealthCheckRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NSRecordServiceServer).UpdateNSRecordHealthCheck(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.NSRecordService/UpdateNSRecordHealthCheck",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NSRecordServiceServer).UpdateNSRecordHealthCheck(ctx, req.(*UpdateNSRecordHealthCheckRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NSRecordService_UpdateNSRecordIsUp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateNSRecordIsUpRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NSRecordServiceServer).UpdateNSRecordIsUp(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.NSRecordService/UpdateNSRecordIsUp",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NSRecordServiceServer).UpdateNSRecordIsUp(ctx, req.(*UpdateNSRecordIsUpRequest))
}
return interceptor(ctx, in, info, handler)
}
var _NSRecordService_serviceDesc = grpc.ServiceDesc{ var _NSRecordService_serviceDesc = grpc.ServiceDesc{
ServiceName: "pb.NSRecordService", ServiceName: "pb.NSRecordService",
HandlerType: (*NSRecordServiceServer)(nil), HandlerType: (*NSRecordServiceServer)(nil),
@@ -3414,6 +3838,18 @@ var _NSRecordService_serviceDesc = grpc.ServiceDesc{
MethodName: "listNSRecordsAfterVersion", MethodName: "listNSRecordsAfterVersion",
Handler: _NSRecordService_ListNSRecordsAfterVersion_Handler, Handler: _NSRecordService_ListNSRecordsAfterVersion_Handler,
}, },
{
MethodName: "findNSRecordHealthCheck",
Handler: _NSRecordService_FindNSRecordHealthCheck_Handler,
},
{
MethodName: "updateNSRecordHealthCheck",
Handler: _NSRecordService_UpdateNSRecordHealthCheck_Handler,
},
{
MethodName: "updateNSRecordIsUp",
Handler: _NSRecordService_UpdateNSRecordIsUp_Handler,
},
}, },
Streams: []grpc.StreamDesc{}, Streams: []grpc.StreamDesc{},
Metadata: "service_ns_record.proto", Metadata: "service_ns_record.proto",
+3
View File
@@ -37,6 +37,9 @@ message Node {
repeated string lnAddrs = 21; // Ln访问地址 repeated string lnAddrs = 21; // Ln访问地址
bool enableIPLists = 22; bool enableIPLists = 22;
bytes apiNodeAddrsJSON = 24; bytes apiNodeAddrsJSON = 24;
string offlineDay = 25; // 下线日期
bool isBackupForCluster = 26; // 是否为集群备用节点
bool isBackupForGroup = 27; // 是否为分组备用节点
NodeCluster nodeCluster = 32; // 主集群 NodeCluster nodeCluster = 32; // 主集群
NodeLogin nodeLogin = 33; NodeLogin nodeLogin = 33;
@@ -0,0 +1,15 @@
syntax = "proto3";
option go_package = "./pb";
package pb;
// 节点动作
message NodeAction {
int64 id = 1;
int64 nodeId = 2;
string role = 3;
bool isOn = 4; // 是否启用
bytes condsJSON = 5; // 条件定义
bytes actionJSON = 6; // 动作定义
bytes durationJSON = 7; // 持续时间
}
@@ -19,6 +19,7 @@ message NSDomain {
repeated int64 nsDomainGroupIds = 8; repeated int64 nsDomainGroupIds = 8;
string status = 9; string status = 9;
int64 userId = 10; // 用户ID int64 userId = 10; // 用户ID
bytes recordsHealthCheckJSON = 11; // 健康检查设置
NSCluster nsCluster = 30; NSCluster nsCluster = 30;
User user = 31; User user = 31;
+13 -10
View File
@@ -8,11 +8,11 @@ import "models/model_ns_route.proto";
// 域名记录 // 域名记录
message NSRecord { message NSRecord {
int64 id = 1; int64 id = 1; // 记录ID
string description = 2; string description = 2; // 备注
string name = 3; string name = 3; // 记录名
string type = 4; string type = 4; // 记录类型
string value = 5; string value = 5; // 记录值
int32 mxPriority = 12; // mx优先级 int32 mxPriority = 12; // mx优先级
@@ -23,13 +23,16 @@ message NSRecord {
int32 caaFlag = 16; // CAA Flag int32 caaFlag = 16; // CAA Flag
string caaTag = 17; // CAA TAG string caaTag = 17; // CAA TAG
int32 ttl = 6; int32 ttl = 6; // TTL
int32 weight = 7; int32 weight = 7; // 权重
int64 createdAt = 8; int64 createdAt = 8;
bool isDeleted = 9; bool isDeleted = 9;
int64 version = 10; int64 version = 10;
bool isOn = 11; bool isOn = 11; // 是否启用
NSDomain nsDomain = 30; bytes healthCheckJSON = 18; // 健康检查配置
repeated NSRoute nsRoutes = 31; bool isUp = 19; // 是否在线(根据健康检查结果)
NSDomain nsDomain = 30; // 所属域名
repeated NSRoute nsRoutes = 31; // 线路
} }
@@ -22,6 +22,9 @@ service AuthorityKeyService {
// 检查版本信息 // 检查版本信息
rpc checkAuthority(CheckAuthorityRequest) returns (CheckAuthorityResponse); rpc checkAuthority(CheckAuthorityRequest) returns (CheckAuthorityResponse);
// 查询授权容量
rpc findAuthorityQuota(FindAuthorityQuotaRequest) returns (FindAuthorityQuotaResponse);
} }
// 设置Key // 设置Key
@@ -67,3 +70,13 @@ message CheckAuthorityResponse {
bool isPlus = 1; bool isPlus = 1;
string edition = 2; string edition = 2;
} }
// 查询授权容量
message FindAuthorityQuotaRequest {
}
message FindAuthorityQuotaResponse {
int32 maxNodes = 1; // 节点数限制
int32 countNodes = 2; // 已占用节点数
}
@@ -16,6 +16,9 @@ service HTTPCacheTaskKeyService {
// 更新一组Key状态 // 更新一组Key状态
rpc updateHTTPCacheTaskKeysStatus(UpdateHTTPCacheTaskKeysStatusRequest) returns (RPCSuccess); rpc updateHTTPCacheTaskKeysStatus(UpdateHTTPCacheTaskKeysStatusRequest) returns (RPCSuccess);
// 计算当天已经清理的Key数量
rpc countHTTPCacheTaskKeysWithDay(CountHTTPCacheTaskKeysWithDayRequest) returns (RPCCountResponse);
} }
// 校验缓存Key // 校验缓存Key
@@ -51,3 +54,9 @@ message UpdateHTTPCacheTaskKeysStatusRequest {
string error = 3; string error = 3;
} }
} }
// 计算当天已经清理的Key数量
message CountHTTPCacheTaskKeysWithDayRequest {
string keyType = 1; // Key类型:清理:purge,预热:fetch
string day = 2; // 日期,格式:YYYYMMDD
}
@@ -28,6 +28,9 @@ service HTTPHeaderPolicyService {
// 修改删除的Headers // 修改删除的Headers
rpc updateHTTPHeaderPolicyDeletingHeaders (UpdateHTTPHeaderPolicyDeletingHeadersRequest) returns (RPCSuccess); rpc updateHTTPHeaderPolicyDeletingHeaders (UpdateHTTPHeaderPolicyDeletingHeadersRequest) returns (RPCSuccess);
// 修改非标的Headers
rpc updateHTTPHeaderPolicyNonStandardHeaders(UpdateHTTPHeaderPolicyNonStandardHeadersRequest) returns (RPCSuccess);
// 修改策略CORS设置 // 修改策略CORS设置
rpc updateHTTPHeaderPolicyCORS(UpdateHTTPHeaderPolicyCORSRequest) returns (RPCSuccess); rpc updateHTTPHeaderPolicyCORS(UpdateHTTPHeaderPolicyCORSRequest) returns (RPCSuccess);
} }
@@ -85,3 +88,9 @@ message UpdateHTTPHeaderPolicyCORSRequest {
int64 httpHeaderPolicyId = 1; int64 httpHeaderPolicyId = 1;
bytes corsJSON = 2; bytes corsJSON = 2;
} }
// 修改非标的Headers
message UpdateHTTPHeaderPolicyNonStandardHeadersRequest {
int64 httpHeaderPolicyId = 1; // Header策略ID
repeated string headerNames = 2; // 非标Header名称列表
}
+124 -6
View File
@@ -172,6 +172,30 @@ service NodeService {
// 查找节点的UAM策略 // 查找节点的UAM策略
rpc findNodeUAMPolicies(FindNodeUAMPoliciesRequest) returns (FindNodeUAMPoliciesResponse); rpc findNodeUAMPolicies(FindNodeUAMPoliciesRequest) returns (FindNodeUAMPoliciesResponse);
// 查找节点的HTTP CC策略
rpc findNodeHTTPCCPolicies(FindNodeHTTPCCPoliciesRequest) returns (FindNodeHTTPCCPoliciesResponse);
// 查找节点的自定义页面策略
rpc findNodeHTTPPagesPolicies(FindNodeHTTPPagesPoliciesRequest) returns (FindNodeHTTPPagesPoliciesResponse);
// 查找节点调度信息
rpc findNodeScheduleInfo(FindNodeScheduleInfoRequest) returns (FindNodeScheduleInfoResponse);
// 修改节点调度信息
rpc updateNodeScheduleInfo(UpdateNodeScheduleInfoRequest) returns (RPCSuccess);
// 重置节点动作状态
rpc resetNodeActionStatus(ResetNodeActionStatusRequest) returns (RPCSuccess);
// 查找集群的节点调度信息
rpc findAllNodeScheduleInfoWithNodeClusterId(FindAllNodeScheduleInfoWithNodeClusterIdRequest) returns (FindAllNodeScheduleInfoWithNodeClusterIdResponse);
// 复制动作设置到分组
rpc copyNodeActionsToNodeGroup(CopyNodeActionsToNodeGroupRequest) returns (RPCSuccess);
// 复制动作设置到集群
rpc copyNodeActionsToNodeCluster(CopyNodeActionsToNodeClusterRequest) returns (RPCSuccess);
} }
// 创建节点 // 创建节点
@@ -471,6 +495,9 @@ message NodeDNSInfo {
int64 dnsDomainId = 6; int64 dnsDomainId = 6;
string dnsDomainName = 7; string dnsDomainName = 7;
string nodeClusterDNSName = 8; string nodeClusterDNSName = 8;
bool isBackupForCluster = 10; // 是否为集群备份节点
bool isBackupForGroup = 11; // 是否为分组备份节点
bool isOffline = 12; // 是否下线
} }
// 查找单个节点的域名解析信息 // 查找单个节点的域名解析信息
@@ -609,12 +636,13 @@ message FindEnabledNodeConfigInfoRequest {
} }
message FindEnabledNodeConfigInfoResponse { message FindEnabledNodeConfigInfoResponse {
bool hasDNSInfo = 1; bool hasDNSInfo = 1; // 是否有DNS设置
bool hasCacheInfo = 2; bool hasCacheInfo = 2; // 是否有缓存设置
bool hasThresholds = 3; bool hasThresholds = 3; // 是否有阈值设置
bool hasSSH = 4; bool hasSSH = 4; // 是否有SSH设置
bool hasSystemSettings = 5; bool hasSystemSettings = 5; // 是否有系统设置
bool hasDDoSProtection = 6; bool hasDDoSProtection = 6; // 是否有DDoS防护设置
bool hasScheduleSettings = 7; // 是否有调度设置
} }
// 查找节点区域信息数量 // 查找节点区域信息数量
@@ -675,3 +703,93 @@ message FindNodeUAMPoliciesResponse {
bytes uamPolicyJSON = 2; // UAM策略配置 bytes uamPolicyJSON = 2; // UAM策略配置
} }
} }
// 查找节点的HTTP CC策略
message FindNodeHTTPCCPoliciesRequest {
int64 nodeId = 1; // 节点ID
}
message FindNodeHTTPCCPoliciesResponse {
repeated HTTPCCPolicy httpCCPolicies = 1; // HTTP CC策略列表
message HTTPCCPolicy {
int64 nodeClusterId = 1; // 集群ID
bytes httpCCPolicyJSON = 2; // HTTP CC策略配置
}
}
// 查找节点的自定义页面策略
message FindNodeHTTPPagesPoliciesRequest {
int64 nodeId = 1; // 节点ID
}
message FindNodeHTTPPagesPoliciesResponse {
repeated HTTPPagesPolicy httpPagesPolicies = 1; // 自定义页面策略列表
message HTTPPagesPolicy {
int64 nodeClusterId = 1; // 集群ID
bytes httpPagesPolicyJSON = 2; // 自定义页面策略配置
}
}
// 查找节点调度信息
message FindNodeScheduleInfoRequest {
int64 nodeId = 1; // 节点ID
}
message FindNodeScheduleInfoResponse {
ScheduleInfo scheduleInfo = 1; // 调度信息
message ScheduleInfo {
string offlineDay = 1; // 下线日期,格式YYYYMMDD
bool isBackupForCluster = 2; // 是否为集群备份节点
bool isBackupForGroup = 3; // 是否为分组备份节点
repeated string backupIPs = 4; // 备用IP
bytes actionStatusJSON = 5; // 动作状态
}
}
// 修改节点调度信息
message UpdateNodeScheduleInfoRequest {
int64 nodeId = 1; // 节点ID
string offlineDay = 2; // 下线日期,格式YYYYMMDD
bool isBackupForCluster = 3; // 是否为集群备份节点
bool isBackupForGroup = 4; // 是否为分组备份节点
repeated string backupIPs = 5; // 备用IP
}
// 重置节点动作状态
message ResetNodeActionStatusRequest {
int64 nodeId = 1; // 节点ID
}
// 查找集群的节点调度信息
message FindAllNodeScheduleInfoWithNodeClusterIdRequest {
int64 nodeClusterId = 1; // 集群ID
}
message FindAllNodeScheduleInfoWithNodeClusterIdResponse {
repeated ScheduleInfo nodes = 1; // 调动信息列表
message ScheduleInfo {
int64 nodeId = 1; // 节点ID
string nodeName = 2; // 节点名称
int64 nodeGroupId = 3; // 节点分组ID
string nodeGroupName = 4; // 节点分组名称
string offlineDay = 5; // 下线日期,格式YYYYMMDD
bool isBackupForCluster = 6; // 是否为集群备份节点
bool isBackupForGroup = 7; // 是否为分组备份节点
repeated string backupIPs = 8; // 备用IP
bytes actionStatusJSON = 9; // 动作状态
}
}
// 同步动作设置到分组
message CopyNodeActionsToNodeGroupRequest {
int64 nodeId = 1;
}
// 同步动作设置到集群
message CopyNodeActionsToNodeClusterRequest {
int64 nodeId = 1;
}
+79
View File
@@ -0,0 +1,79 @@
syntax = "proto3";
option go_package = "./pb";
package pb;
import "models/model_node_action.proto";
import "models/rpc_messages.proto";
// 节点动作服务
service NodeActionService {
// 添加动作
rpc createNodeAction(CreateNodeActionRequest) returns (CreateNodeActionResponse);
// 删除动作
rpc deleteNodeAction(DeleteNodeActionRequest) returns (RPCSuccess);
// 修改动作
rpc updateNodeAction(UpdateNodeActionRequest) returns (RPCSuccess);
// 列出某个节点的所有动作
rpc findAllNodeActions(FindAllNodeActionsRequest) returns (FindAllNodeActionsResponse);
// 查找单个节点动作
rpc findNodeAction(FindNodeActionRequest) returns (FindNodeActionResponse);
// 设置节点动作排序
rpc updateNodeActionOrders(UpdateNodeActionOrdersRequest) returns (RPCSuccess);
}
// 添加动作
message CreateNodeActionRequest {
int64 nodeId = 1; // 节点ID
string role = 2; // 节点角色
bytes condsJSON = 3; // 条件设置
bytes actionJSON = 4; // 动作设置
bytes durationJSON = 5; // 持续时间
}
message CreateNodeActionResponse {
int64 nodeActionId = 1;
}
// 删除动作
message DeleteNodeActionRequest {
int64 nodeActionId = 1;
}
// 修改动作
message UpdateNodeActionRequest {
int64 nodeActionId = 1; // 动作ID
bytes condsJSON = 2;
bytes actionJSON = 3;
bytes durationJSON = 4; // 持续时间
bool isOn = 5; // 是否启用
}
// 列出某个节点的所有动作
message FindAllNodeActionsRequest {
int64 nodeId = 1; // 节点ID
string role = 2; // 节点角色
}
message FindAllNodeActionsResponse {
repeated NodeAction nodeActions = 1; // 动作列表
}
// 查找单个节点动作
message FindNodeActionRequest {
int64 nodeActionId = 1; // 动作ID
}
message FindNodeActionResponse {
NodeAction nodeAction = 1;
}
// 设置节点动作排序
message UpdateNodeActionOrdersRequest {
repeated int64 nodeActionIds = 1; // 节点动作ID列表
}
+46 -2
View File
@@ -129,6 +129,12 @@ service NodeClusterService {
// 设置集群的UAM策略 // 设置集群的UAM策略
rpc updateNodeClusterUAMPolicy(UpdateNodeClusterUAMPolicyRequest) returns (RPCSuccess); rpc updateNodeClusterUAMPolicy(UpdateNodeClusterUAMPolicyRequest) returns (RPCSuccess);
// 读取集群的HTTP CC策略
rpc findEnabledNodeClusterHTTPCCPolicy(FindEnabledNodeClusterHTTPCCPolicyRequest) returns (FindEnabledNodeClusterHTTPCCPolicyResponse);
// 设置集群的HTTP CC策略
rpc updateNodeClusterHTTPCCPolicy(UpdateNodeClusterHTTPCCPolicyRequest) returns (RPCSuccess);
// 获取集群的DDoS设置 // 获取集群的DDoS设置
rpc findNodeClusterDDoSProtection(FindNodeClusterDDoSProtectionRequest) returns (FindNodeClusterDDoSProtectionResponse); rpc findNodeClusterDDoSProtection(FindNodeClusterDDoSProtectionRequest) returns (FindNodeClusterDDoSProtectionResponse);
@@ -140,6 +146,12 @@ service NodeClusterService {
// 修改集群的全局服务设置 // 修改集群的全局服务设置
rpc updateNodeClusterGlobalServerConfig(UpdateNodeClusterGlobalServerConfigRequest) returns (RPCSuccess); rpc updateNodeClusterGlobalServerConfig(UpdateNodeClusterGlobalServerConfigRequest) returns (RPCSuccess);
// 获取集群的自定义页面设置
rpc findNodeClusterHTTPPagesPolicy(FindNodeClusterHTTPPagesPolicyRequest) returns (FindNodeClusterHTTPPagesPolicyResponse);
// 修改集群的自定义页面设置
rpc updateNodeClusterHTTPPagesPolicy(UpdateNodeClusterHTTPPagesPolicyRequest) returns (RPCSuccess);
} }
// 获取所有集群的信息 // 获取所有集群的信息
@@ -456,10 +468,12 @@ message FindEnabledNodeClusterConfigInfoResponse {
bool hasMessageReceivers = 4; bool hasMessageReceivers = 4;
bool isTOAEnabled = 5; bool isTOAEnabled = 5;
bool hasMetricItems = 6; bool hasMetricItems = 6;
bool webpIsOn = 7; bool webpIsOn = 7; // 是否定义了WebP策略
bool uamIsOn = 10; bool uamIsOn = 10; // 是否定义了UAM策略
bool httpCCIsOn = 12; // 是否定义了CC策略
bool hasSystemServices = 8; bool hasSystemServices = 8;
bool hasDDoSProtection = 9; bool hasDDoSProtection = 9;
bool hasHTTPPagesPolicy = 11; // 是否设置了自定义页面策略
} }
// 设置集群是否置顶 // 设置集群是否置顶
@@ -498,6 +512,21 @@ message UpdateNodeClusterUAMPolicyRequest {
bytes uamPolicyJSON = 2; bytes uamPolicyJSON = 2;
} }
// 读取集群的HTTP CC策略
message FindEnabledNodeClusterHTTPCCPolicyRequest {
int64 nodeClusterId = 1;
}
message FindEnabledNodeClusterHTTPCCPolicyResponse {
bytes httpCCPolicyJSON = 1;
}
// 设置集群的HTTP CC策略
message UpdateNodeClusterHTTPCCPolicyRequest {
int64 nodeClusterId = 1;
bytes httpCCPolicyJSON = 2;
}
// 获取集群的DDoS设置 // 获取集群的DDoS设置
message FindNodeClusterDDoSProtectionRequest { message FindNodeClusterDDoSProtectionRequest {
int64 nodeClusterId = 1; int64 nodeClusterId = 1;
@@ -527,3 +556,18 @@ message UpdateNodeClusterGlobalServerConfigRequest {
int64 nodeClusterId = 1; int64 nodeClusterId = 1;
bytes globalServerConfigJSON = 2; bytes globalServerConfigJSON = 2;
} }
// 获取集群的自定义页面设置
message FindNodeClusterHTTPPagesPolicyRequest {
int64 nodeClusterId = 1;
}
message FindNodeClusterHTTPPagesPolicyResponse {
bytes httpPagesPolicyJSON = 1; // HTTP自定义页面策略配置
}
// 修改集群的自定义页面设置
message UpdateNodeClusterHTTPPagesPolicyRequest {
int64 nodeClusterId = 1;
bytes httpPagesPolicyJSON = 2; // HTTP自定义页面策略配置
}
+21
View File
@@ -61,6 +61,12 @@ service NSDomainService {
// 验证域名信息 // 验证域名信息
rpc verifyNSDomain(VerifyNSDomainRequest) returns (VerifyNSDomainResponse); rpc verifyNSDomain(VerifyNSDomainRequest) returns (VerifyNSDomainResponse);
// 查询记录健康检查全局设置
rpc findNSDomainRecordsHealthCheck(FindNSDomainRecordsHealthCheckRequest) returns (FindNSDomainRecordsHealthCheckResponse);
// 修改记录健康检查全局设置
rpc updateNSDomainRecordsHealthCheck(UpdateNSDomainRecordsHealthCheckRequest) returns (RPCSuccess);
} }
// 创建单个域名 // 创建单个域名
@@ -232,3 +238,18 @@ message VerifyNSDomainResponse {
string errorCode = 2; // 错误代码 string errorCode = 2; // 错误代码
string errorMessage = 3; // 错误消息 string errorMessage = 3; // 错误消息
} }
// 查询记录健康检查全局设置
message FindNSDomainRecordsHealthCheckRequest {
int64 nsDomainId = 1; // 域名ID
}
message FindNSDomainRecordsHealthCheckResponse {
bytes nsDomainRecordsHealthCheckJSON = 1; // 健康检查设置
}
// 修改记录健康检查全局设置
message UpdateNSDomainRecordsHealthCheckRequest {
int64 nsDomainId = 1; // 域名ID
bytes nsDomainRecordsHealthCheckJSON = 2; // 健康检查设置
}
+32
View File
@@ -55,6 +55,15 @@ service NSRecordService {
// 根据版本列出一组记录 // 根据版本列出一组记录
rpc listNSRecordsAfterVersion (ListNSRecordsAfterVersionRequest) returns (ListNSRecordsAfterVersionResponse); rpc listNSRecordsAfterVersion (ListNSRecordsAfterVersionRequest) returns (ListNSRecordsAfterVersionResponse);
// 查询记录健康检查设置
rpc findNSRecordHealthCheck(FindNSRecordHealthCheckRequest) returns (FindNSRecordHealthCheckResponse);
// 修改记录健康检查设置
rpc updateNSRecordHealthCheck(UpdateNSRecordHealthCheckRequest) returns (RPCSuccess);
// 手动修改记录在线状态
rpc updateNSRecordIsUp(UpdateNSRecordIsUpRequest) returns (RPCSuccess);
} }
// 创建记录 // 创建记录
@@ -233,6 +242,8 @@ message ListNSRecordsRequest {
bool typeDesc = 11; bool typeDesc = 11;
bool ttlAsc = 12; bool ttlAsc = 12;
bool ttlDesc = 13; bool ttlDesc = 13;
bool upAsc = 14;
bool upDesc = 15;
int64 offset = 5; int64 offset = 5;
int64 size = 6; int64 size = 6;
@@ -282,3 +293,24 @@ message ListNSRecordsAfterVersionRequest {
message ListNSRecordsAfterVersionResponse { message ListNSRecordsAfterVersionResponse {
repeated NSRecord nsRecords = 1; repeated NSRecord nsRecords = 1;
} }
// 查询记录健康检查设置
message FindNSRecordHealthCheckRequest {
int64 nsRecordId = 1; // 记录ID
}
message FindNSRecordHealthCheckResponse {
bytes nsRecordHealthCheckJSON = 1; // 记录健康检查配置
}
// 修改记录健康检查设置
message UpdateNSRecordHealthCheckRequest {
int64 nsRecordId = 1; // 记录ID
bytes nsRecordHealthCheckJSON = 2; // 记录健康检查配置
}
// 手动修改记录在线状态
message UpdateNSRecordIsUpRequest {
int64 nsRecordId = 1; // 记录ID
bool isUp = 2; // 是否在线
}
@@ -13,6 +13,7 @@ const (
HTTPFirewallActionRecordIP HTTPFirewallActionString = "record_ip" // 记录IP HTTPFirewallActionRecordIP HTTPFirewallActionString = "record_ip" // 记录IP
HTTPFirewallActionTag HTTPFirewallActionString = "tag" // 标签 HTTPFirewallActionTag HTTPFirewallActionString = "tag" // 标签
HTTPFirewallActionPage HTTPFirewallActionString = "page" // 显示页面 HTTPFirewallActionPage HTTPFirewallActionString = "page" // 显示页面
HTTPFirewallActionRedirect HTTPFirewallActionString = "redirect" // 跳转
HTTPFirewallActionAllow HTTPFirewallActionString = "allow" // allow HTTPFirewallActionAllow HTTPFirewallActionString = "allow" // allow
HTTPFirewallActionGoGroup HTTPFirewallActionString = "go_group" // go to next rule group HTTPFirewallActionGoGroup HTTPFirewallActionString = "go_group" // go to next rule group
HTTPFirewallActionGoSet HTTPFirewallActionString = "go_set" // go to next rule set HTTPFirewallActionGoSet HTTPFirewallActionString = "go_set" // go to next rule set
@@ -35,6 +35,12 @@ var AllActions = []*HTTPFirewallActionDefinition{
Description: "在网页中显示提示文字。", Description: "在网页中显示提示文字。",
Category: HTTPFirewallActionCategoryBlock, Category: HTTPFirewallActionCategoryBlock,
}, },
{
Name: "跳转",
Code: HTTPFirewallActionRedirect,
Description: "跳转到新的URL。",
Category: HTTPFirewallActionCategoryBlock,
},
{ {
Name: "允许通过", Name: "允许通过",
Code: HTTPFirewallActionAllow, Code: HTTPFirewallActionAllow,
@@ -1,18 +1,99 @@
package firewallconfigs package firewallconfigs
import "github.com/TeaOSLab/EdgeCommon/pkg/serverconfigs/shared"
type HTTPFirewallRegionConfig struct { type HTTPFirewallRegionConfig struct {
IsOn bool `yaml:"isOn" json:"isOn"` IsOn bool `yaml:"isOn" json:"isOn"`
DenyCountryIds []int64 `yaml:"denyCountryIds" json:"denyCountryIds"` // 封禁的国家|地区 DenyCountryIds []int64 `yaml:"denyCountryIds" json:"denyCountryIds"` // 封禁的国家|地区
DenyProvinceIds []int64 `yaml:"denyProvinceIds" json:"denyProvinceIds"` // 封禁的省或自治区 DenyProvinceIds []int64 `yaml:"denyProvinceIds" json:"denyProvinceIds"` // 封禁的省或自治区
CountryOnlyURLPatterns []*shared.URLPattern `yaml:"countryOnlyURLPatterns" json:"countryOnlyURLPatterns"` // 仅限的URL
CountryExceptURLPatterns []*shared.URLPattern `yaml:"countryExceptURLPatterns" json:"countryExceptURLPatterns"` // 排除的URL
ProvinceOnlyURLPatterns []*shared.URLPattern `yaml:"provinceOnlyURLPatterns" json:"provinceOnlyURLPatterns"` // 仅限的URL
ProvinceExceptURLPatterns []*shared.URLPattern `yaml:"provinceExceptURLPatterns" json:"provinceExceptURLPatterns"` // 排除的URL
isNotEmpty bool isNotEmpty bool
} }
func (this *HTTPFirewallRegionConfig) Init() error { func (this *HTTPFirewallRegionConfig) Init() error {
this.isNotEmpty = len(this.DenyCountryIds) > 0 || len(this.DenyProvinceIds) > 0 this.isNotEmpty = len(this.DenyCountryIds) > 0 || len(this.DenyProvinceIds) > 0
for _, pattern := range this.CountryExceptURLPatterns {
err := pattern.Init()
if err != nil {
return err
}
}
for _, pattern := range this.CountryOnlyURLPatterns {
err := pattern.Init()
if err != nil {
return err
}
}
for _, pattern := range this.ProvinceExceptURLPatterns {
err := pattern.Init()
if err != nil {
return err
}
}
for _, pattern := range this.ProvinceOnlyURLPatterns {
err := pattern.Init()
if err != nil {
return err
}
}
return nil return nil
} }
func (this *HTTPFirewallRegionConfig) IsNotEmpty() bool { func (this *HTTPFirewallRegionConfig) IsNotEmpty() bool {
return this.isNotEmpty return this.isNotEmpty
} }
func (this *HTTPFirewallRegionConfig) MatchCountryURL(url string) bool {
// except
if len(this.CountryExceptURLPatterns) > 0 {
for _, pattern := range this.CountryExceptURLPatterns {
if pattern.Match(url) {
return false
}
}
}
if len(this.CountryOnlyURLPatterns) > 0 {
for _, pattern := range this.CountryOnlyURLPatterns {
if pattern.Match(url) {
return true
}
}
return false
}
return true
}
func (this *HTTPFirewallRegionConfig) MatchProvinceURL(url string) bool {
// except
if len(this.ProvinceExceptURLPatterns) > 0 {
for _, pattern := range this.ProvinceExceptURLPatterns {
if pattern.Match(url) {
return false
}
}
}
if len(this.ProvinceOnlyURLPatterns) > 0 {
for _, pattern := range this.ProvinceOnlyURLPatterns {
if pattern.Match(url) {
return true
}
}
return false
}
return true
}
@@ -19,6 +19,7 @@ func DefaultGlobalServerConfig() *GlobalServerConfig {
config.Stat.Upload.MaxProviders = 32 config.Stat.Upload.MaxProviders = 32
config.Stat.Upload.MaxSystems = 64 config.Stat.Upload.MaxSystems = 64
config.Stat.Upload.MaxBrowsers = 64 config.Stat.Upload.MaxBrowsers = 64
return config return config
} }
@@ -32,6 +33,7 @@ type GlobalServerConfig struct {
DomainMismatchAction *DomainMismatchAction `yaml:"domainMismatchAction" json:"domainMismatchAction"` // 不匹配时采取的动作 DomainMismatchAction *DomainMismatchAction `yaml:"domainMismatchAction" json:"domainMismatchAction"` // 不匹配时采取的动作
SupportsLowVersionHTTP bool `yaml:"supportsLowVersionHTTP" json:"supportsLowVersionHTTP"` // 是否启用低版本HTTP SupportsLowVersionHTTP bool `yaml:"supportsLowVersionHTTP" json:"supportsLowVersionHTTP"` // 是否启用低版本HTTP
MatchCertFromAllServers bool `yaml:"matchCertFromAllServers" json:"matchCertFromAllServers"` // 从所有服务中匹配证书(不要轻易开启!)
} `yaml:"httpAll" json:"httpAll"` // HTTP统一配置 } `yaml:"httpAll" json:"httpAll"` // HTTP统一配置
HTTPAccessLog struct { HTTPAccessLog struct {
+22
View File
@@ -3,6 +3,28 @@
package serverconfigs package serverconfigs
type HTTPCCThreshold struct {
// stub
}
func NewHTTPCCThreshold() *HTTPCCThreshold {
return &HTTPCCThreshold{}
}
func (this *HTTPCCThreshold) Merge(threshold *HTTPCCThreshold) {
// stub
}
func (this *HTTPCCThreshold) MergeIfEmpty(threshold *HTTPCCThreshold) {
// stub
}
func (this *HTTPCCThreshold) Clone() *HTTPCCThreshold {
return &HTTPCCThreshold{}
}
var DefaultHTTPCCThresholds = []*HTTPCCThreshold{} // stub
// DefaultHTTPCCConfig 默认的CC配置 // DefaultHTTPCCConfig 默认的CC配置
func DefaultHTTPCCConfig() *HTTPCCConfig { func DefaultHTTPCCConfig() *HTTPCCConfig {
return &HTTPCCConfig{} return &HTTPCCConfig{}
@@ -55,6 +55,7 @@ type HTTPHostRedirectConfig struct {
PortAfterScheme string `yaml:"portAfterScheme" json:"portAfterScheme"` // 跳转之后的协议 PortAfterScheme string `yaml:"portAfterScheme" json:"portAfterScheme"` // 跳转之后的协议
beforePortRanges [][2]int // [[from, to], {from2, to2}, ...] beforePortRanges [][2]int // [[from, to], {from2, to2}, ...]
beforeHasQuery bool
} }
// Init 初始化 // Init 初始化
@@ -65,6 +66,8 @@ func (this *HTTPHostRedirectConfig) Init() error {
if this.Type == HTTPHostRedirectTypeURL { if this.Type == HTTPHostRedirectTypeURL {
if !this.MatchRegexp { if !this.MatchRegexp {
this.beforeHasQuery = strings.Contains(this.BeforeURL, "?")
u, err := url.Parse(this.BeforeURL) u, err := url.Parse(this.BeforeURL)
if err != nil { if err != nil {
return err return err
@@ -117,6 +120,11 @@ func (this *HTTPHostRedirectConfig) RealBeforeURL() string {
return this.realBeforeURL return this.realBeforeURL
} }
// BeforeHasQuery 判断跳转前URL是否有查询参数
func (this *HTTPHostRedirectConfig) BeforeHasQuery() bool {
return this.beforeHasQuery
}
// BeforeURLRegexp 跳转前URL正则表达式 // BeforeURLRegexp 跳转前URL正则表达式
func (this *HTTPHostRedirectConfig) BeforeURLRegexp() *regexp.Regexp { func (this *HTTPHostRedirectConfig) BeforeURLRegexp() *regexp.Regexp {
return this.beforeURLRegexp return this.beforeURLRegexp
+8
View File
@@ -4,6 +4,13 @@ package serverconfigs
import "github.com/TeaOSLab/EdgeCommon/pkg/configutils" import "github.com/TeaOSLab/EdgeCommon/pkg/configutils"
// NewReferersConfig 获取新防盗链配置对象
func NewReferersConfig() *ReferersConfig {
return &ReferersConfig{
CheckOrigin: true,
}
}
// ReferersConfig 防盗链设置 // ReferersConfig 防盗链设置
type ReferersConfig struct { type ReferersConfig struct {
IsPrior bool `yaml:"isPrior" json:"isPrior"` IsPrior bool `yaml:"isPrior" json:"isPrior"`
@@ -12,6 +19,7 @@ type ReferersConfig struct {
AllowSameDomain bool `yaml:"allowSameDomain" json:"allowSameDomain"` // 允许来源域名和当前访问的域名一致,相当于在站内访问 AllowSameDomain bool `yaml:"allowSameDomain" json:"allowSameDomain"` // 允许来源域名和当前访问的域名一致,相当于在站内访问
AllowDomains []string `yaml:"allowDomains" json:"allowDomains"` // 允许的来源域名列表 AllowDomains []string `yaml:"allowDomains" json:"allowDomains"` // 允许的来源域名列表
DenyDomains []string `yaml:"denyDomains" json:"denyDomains"` // 禁止的来源域名列表 DenyDomains []string `yaml:"denyDomains" json:"denyDomains"` // 禁止的来源域名列表
CheckOrigin bool `yaml:"checkOrigin" json:"checkOrigin"` // 是否检查Origin
} }
func (this *ReferersConfig) Init() error { func (this *ReferersConfig) Init() error {
+4 -4
View File
@@ -11,13 +11,13 @@ const (
func FindAllBodyTypes() []*Definition { func FindAllBodyTypes() []*Definition {
return []*Definition{ return []*Definition{
{
Name: "读取URL",
Code: BodyTypeURL,
},
{ {
Name: "HTML", Name: "HTML",
Code: BodyTypeHTML, Code: BodyTypeHTML,
}, },
{
Name: "读取URL",
Code: BodyTypeURL,
},
} }
} }
@@ -5,13 +5,20 @@ package shared
// HTTPCORSHeaderConfig 参考 https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS // HTTPCORSHeaderConfig 参考 https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
type HTTPCORSHeaderConfig struct { type HTTPCORSHeaderConfig struct {
IsOn bool `yaml:"isOn" json:"isOn"` IsOn bool `yaml:"isOn" json:"isOn"`
AllowMethods []string `yaml:"allowMethods" json:"allowMethods"` // TODO AllowMethods []string `yaml:"allowMethods" json:"allowMethods"`
AllowOrigin string `yaml:"allowOrigin" json:"allowOrigin"` // TODO AllowOrigin string `yaml:"allowOrigin" json:"allowOrigin"` // TODO
AllowCredentials bool `yaml:"allowCredentials" json:"allowCredentials"` // TODO AllowCredentials bool `yaml:"allowCredentials" json:"allowCredentials"` // TODO,实现时需要升级以往的老数据
ExposeHeaders []string `yaml:"exposeHeaders" json:"exposeHeaders"` // TODO ExposeHeaders []string `yaml:"exposeHeaders" json:"exposeHeaders"`
MaxAge int32 `yaml:"maxAge" json:"maxAge"` // TODO MaxAge int32 `yaml:"maxAge" json:"maxAge"`
RequestHeaders []string `yaml:"requestHeaders" json:"requestHeaders"` // TODO RequestHeaders []string `yaml:"requestHeaders" json:"requestHeaders"` // TODO
RequestMethod string `yaml:"requestMethod" json:"requestMethod"` // TODO RequestMethod string `yaml:"requestMethod" json:"requestMethod"`
OptionsMethodOnly bool `yaml:"optionsMethodOnly" json:"optionsMethodOnly"` // 是否仅支持OPTIONS方法
}
func NewHTTPCORSHeaderConfig() *HTTPCORSHeaderConfig {
return &HTTPCORSHeaderConfig{
AllowCredentials: true,
}
} }
func (this *HTTPCORSHeaderConfig) Init() error { func (this *HTTPCORSHeaderConfig) Init() error {
@@ -13,8 +13,9 @@ type HTTPHeaderPolicy struct {
SetHeaders []*HTTPHeaderConfig `yaml:"setHeaders" json:"setHeaders"` SetHeaders []*HTTPHeaderConfig `yaml:"setHeaders" json:"setHeaders"`
DeleteHeaders []string `yaml:"deleteHeaders" json:"deleteHeaders"` // 删除的Header DeleteHeaders []string `yaml:"deleteHeaders" json:"deleteHeaders"` // 删除的Header
Expires *HTTPExpireHeaderConfig `yaml:"expires" json:"expires"` // TODO Expires *HTTPExpireHeaderConfig `yaml:"expires" json:"expires"` // 内容过期设置 TODO
CORS *HTTPCORSHeaderConfig `yaml:"cors" json:"cors"` CORS *HTTPCORSHeaderConfig `yaml:"cors" json:"cors"` // CORS跨域设置
NonStandardHeaders []string `yaml:"nonStandardHeaders" json:"nonStandardHeaders"` // 非标Header列表
setHeaderNames []string setHeaderNames []string
deleteHeaderMap map[string]bool // header => bool deleteHeaderMap map[string]bool // header => bool
+40
View File
@@ -2,6 +2,7 @@ package shared
import ( import (
"encoding/json" "encoding/json"
"github.com/iwind/TeaGo/types"
"time" "time"
) )
@@ -41,6 +42,45 @@ func (this *TimeDuration) Duration() time.Duration {
} }
} }
func (this *TimeDuration) Seconds() int64 {
switch this.Unit {
case TimeDurationUnitMS:
return this.Count / 1000
case TimeDurationUnitSecond:
return this.Count
case TimeDurationUnitMinute:
return this.Count * 60
case TimeDurationUnitHour:
return this.Count * 3600
case TimeDurationUnitDay:
return this.Count * 3600 * 24
case TimeDurationUnitWeek:
return this.Count * 3600 * 24 * 7
default:
return this.Count
}
}
func (this *TimeDuration) Description() string {
var countString = types.String(this.Count)
switch this.Unit {
case TimeDurationUnitMS:
return countString + "毫秒"
case TimeDurationUnitSecond:
return countString + "秒"
case TimeDurationUnitMinute:
return countString + "分钟"
case TimeDurationUnitHour:
return countString + "小时"
case TimeDurationUnitDay:
return countString + "天"
case TimeDurationUnitWeek:
return countString + "周"
default:
return countString + "秒"
}
}
func (this *TimeDuration) AsJSON() ([]byte, error) { func (this *TimeDuration) AsJSON() ([]byte, error) {
return json.Marshal(this) return json.Marshal(this)
} }