mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-03 15:00:27 +08:00
59 lines
2.5 KiB
Go
59 lines
2.5 KiB
Go
package models
|
|
|
|
import "github.com/iwind/TeaGo/dbs"
|
|
|
|
// NSCluster 域名服务器集群
|
|
type NSCluster struct {
|
|
Id uint32 `field:"id"` // ID
|
|
IsOn bool `field:"isOn"` // 是否启用
|
|
Name string `field:"name"` // 集群名
|
|
InstallDir string `field:"installDir"` // 安装目录
|
|
State uint8 `field:"state"` // 状态
|
|
AccessLog dbs.JSON `field:"accessLog"` // 访问日志配置
|
|
GrantId uint32 `field:"grantId"` // 授权ID
|
|
Recursion dbs.JSON `field:"recursion"` // 递归DNS设置
|
|
Tcp dbs.JSON `field:"tcp"` // TCP设置
|
|
Tls dbs.JSON `field:"tls"` // TLS设置
|
|
Udp dbs.JSON `field:"udp"` // UDP设置
|
|
Doh dbs.JSON `field:"doh"` // DoH设置
|
|
DdosProtection dbs.JSON `field:"ddosProtection"` // DDoS防护设置
|
|
Hosts dbs.JSON `field:"hosts"` // DNS主机地址
|
|
Soa dbs.JSON `field:"soa"` // SOA配置
|
|
AutoRemoteStart bool `field:"autoRemoteStart"` // 自动远程启动
|
|
TimeZone string `field:"timeZone"` // 时区
|
|
Answer dbs.JSON `field:"answer"` // 应答设置
|
|
SoaSerial uint64 `field:"soaSerial"` // SOA序列号
|
|
Email string `field:"email"` // 管理员邮箱
|
|
DetectAgents bool `field:"detectAgents"` // 是否监测Agents
|
|
CheckingPorts bool `field:"checkingPorts"` // 自动检测端口
|
|
}
|
|
|
|
type NSClusterOperator struct {
|
|
Id any // ID
|
|
IsOn any // 是否启用
|
|
Name any // 集群名
|
|
InstallDir any // 安装目录
|
|
State any // 状态
|
|
AccessLog any // 访问日志配置
|
|
GrantId any // 授权ID
|
|
Recursion any // 递归DNS设置
|
|
Tcp any // TCP设置
|
|
Tls any // TLS设置
|
|
Udp any // UDP设置
|
|
Doh any // DoH设置
|
|
DdosProtection any // DDoS防护设置
|
|
Hosts any // DNS主机地址
|
|
Soa any // SOA配置
|
|
AutoRemoteStart any // 自动远程启动
|
|
TimeZone any // 时区
|
|
Answer any // 应答设置
|
|
SoaSerial any // SOA序列号
|
|
Email any // 管理员邮箱
|
|
DetectAgents any // 是否监测Agents
|
|
CheckingPorts any // 自动检测端口
|
|
}
|
|
|
|
func NewNSClusterOperator() *NSClusterOperator {
|
|
return &NSClusterOperator{}
|
|
}
|