45 lines
2.0 KiB
Go
45 lines
2.0 KiB
Go
package models
|
||
|
||
import "github.com/iwind/TeaGo/dbs"
|
||
|
||
// HTTPDNSCluster HTTPDNS集群
|
||
type HTTPDNSCluster struct {
|
||
Id uint32 `field:"id"` // ID
|
||
Name string `field:"name"` // 集群名称
|
||
IsOn uint8 `field:"isOn"` // 是否启用(tinyint unsigned)
|
||
IsDefault uint8 `field:"isDefault"` // 默认集群(tinyint unsigned)
|
||
ServiceDomain string `field:"serviceDomain"` // 服务域名
|
||
DefaultTTL int32 `field:"defaultTTL"` // 默认TTL
|
||
FallbackTimeoutMs int32 `field:"fallbackTimeoutMs"` // 降级超时
|
||
InstallDir string `field:"installDir"` // 安装目录
|
||
TLSPolicy dbs.JSON `field:"tlsPolicy"` // TLS策略
|
||
AutoRemoteStart uint8 `field:"autoRemoteStart"` // 自动远程启动(tinyint unsigned)
|
||
AccessLogIsOn uint8 `field:"accessLogIsOn"` // 访问日志是否开启(tinyint unsigned)
|
||
TimeZone string `field:"timeZone"` // 时区
|
||
CreatedAt uint64 `field:"createdAt"` // 创建时间
|
||
UpdatedAt uint64 `field:"updatedAt"` // 修改时间
|
||
State uint8 `field:"state"` // 记录状态
|
||
}
|
||
|
||
type HTTPDNSClusterOperator struct {
|
||
Id any // ID
|
||
Name any // 集群名称
|
||
IsOn any // 是否启用
|
||
IsDefault any // 默认集群
|
||
ServiceDomain any // 服务域名
|
||
DefaultTTL any // 默认TTL
|
||
FallbackTimeoutMs any // 降级超时
|
||
InstallDir any // 安装目录
|
||
TLSPolicy any // TLS策略
|
||
AutoRemoteStart any // 自动远程启动
|
||
AccessLogIsOn any // 访问日志是否开启
|
||
TimeZone any // 时区
|
||
CreatedAt any // 创建时间
|
||
UpdatedAt any // 修改时间
|
||
State any // 记录状态
|
||
}
|
||
|
||
func NewHTTPDNSClusterOperator() *HTTPDNSClusterOperator {
|
||
return &HTTPDNSClusterOperator{}
|
||
}
|