mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-03 06:40:26 +08:00
DNS集群增加自动检测端口选项
This commit is contained in:
@@ -24,6 +24,7 @@ type NSCluster struct {
|
||||
SoaSerial uint64 `field:"soaSerial"` // SOA序列号
|
||||
Email string `field:"email"` // 管理员邮箱
|
||||
DetectAgents bool `field:"detectAgents"` // 是否监测Agents
|
||||
CheckingPorts bool `field:"checkingPorts"` // 自动检测端口
|
||||
}
|
||||
|
||||
type NSClusterOperator struct {
|
||||
@@ -47,6 +48,7 @@ type NSClusterOperator struct {
|
||||
SoaSerial any // SOA序列号
|
||||
Email any // 管理员邮箱
|
||||
DetectAgents any // 是否监测Agents
|
||||
CheckingPorts any // 自动检测端口
|
||||
}
|
||||
|
||||
func NewNSClusterOperator() *NSClusterOperator {
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -67101,7 +67101,7 @@
|
||||
"name": "edgeNSClusters",
|
||||
"engine": "InnoDB",
|
||||
"charset": "utf8mb4_general_ci",
|
||||
"definition": "CREATE TABLE `edgeNSClusters` (\n `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `isOn` tinyint(1) unsigned DEFAULT '1' COMMENT '是否启用',\n `name` varchar(255) DEFAULT NULL COMMENT '集群名',\n `installDir` varchar(512) DEFAULT NULL COMMENT '安装目录',\n `state` tinyint(1) unsigned DEFAULT '1' COMMENT '状态',\n `accessLog` json DEFAULT NULL COMMENT '访问日志配置',\n `grantId` int(11) unsigned DEFAULT '0' COMMENT '授权ID',\n `recursion` json DEFAULT NULL COMMENT '递归DNS设置',\n `tcp` json DEFAULT NULL COMMENT 'TCP设置',\n `tls` json DEFAULT NULL COMMENT 'TLS设置',\n `udp` json DEFAULT NULL COMMENT 'UDP设置',\n `ddosProtection` json DEFAULT NULL COMMENT 'DDoS防护设置',\n `hosts` json DEFAULT NULL COMMENT 'DNS主机地址',\n `soa` json DEFAULT NULL COMMENT 'SOA配置',\n `autoRemoteStart` tinyint(1) unsigned DEFAULT '1' COMMENT '自动远程启动',\n `timeZone` varchar(64) DEFAULT NULL COMMENT '时区',\n `answer` json DEFAULT NULL COMMENT '应答设置',\n `soaSerial` bigint(11) unsigned DEFAULT '0' COMMENT 'SOA序列号',\n `email` varchar(255) DEFAULT NULL COMMENT '管理员邮箱',\n `detectAgents` tinyint(1) unsigned DEFAULT '1' COMMENT '是否监测Agents',\n PRIMARY KEY (`id`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='域名服务器集群'",
|
||||
"definition": "CREATE TABLE `edgeNSClusters` (\n `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `isOn` tinyint(1) unsigned DEFAULT '1' COMMENT '是否启用',\n `name` varchar(255) DEFAULT NULL COMMENT '集群名',\n `installDir` varchar(512) DEFAULT NULL COMMENT '安装目录',\n `state` tinyint(1) unsigned DEFAULT '1' COMMENT '状态',\n `accessLog` json DEFAULT NULL COMMENT '访问日志配置',\n `grantId` int(11) unsigned DEFAULT '0' COMMENT '授权ID',\n `recursion` json DEFAULT NULL COMMENT '递归DNS设置',\n `tcp` json DEFAULT NULL COMMENT 'TCP设置',\n `tls` json DEFAULT NULL COMMENT 'TLS设置',\n `udp` json DEFAULT NULL COMMENT 'UDP设置',\n `ddosProtection` json DEFAULT NULL COMMENT 'DDoS防护设置',\n `hosts` json DEFAULT NULL COMMENT 'DNS主机地址',\n `soa` json DEFAULT NULL COMMENT 'SOA配置',\n `autoRemoteStart` tinyint(1) unsigned DEFAULT '1' COMMENT '自动远程启动',\n `timeZone` varchar(64) DEFAULT NULL COMMENT '时区',\n `answer` json DEFAULT NULL COMMENT '应答设置',\n `soaSerial` bigint(11) unsigned DEFAULT '0' COMMENT 'SOA序列号',\n `email` varchar(255) DEFAULT NULL COMMENT '管理员邮箱',\n `detectAgents` tinyint(1) unsigned DEFAULT '1' COMMENT '是否监测Agents',\n `checkingPorts` tinyint(1) unsigned DEFAULT '1' COMMENT '自动检测端口',\n PRIMARY KEY (`id`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='域名服务器集群'",
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
@@ -67182,6 +67182,10 @@
|
||||
{
|
||||
"name": "detectAgents",
|
||||
"definition": "tinyint(1) unsigned DEFAULT '1' COMMENT '是否监测Agents'"
|
||||
},
|
||||
{
|
||||
"name": "checkingPorts",
|
||||
"definition": "tinyint(1) unsigned DEFAULT '1' COMMENT '自动检测端口'"
|
||||
}
|
||||
],
|
||||
"indexes": [
|
||||
|
||||
Reference in New Issue
Block a user