Files
EdgeAPI/internal/db/models/ns_cluster_model.go

37 lines
1.2 KiB
Go
Raw Normal View History

2021-08-08 15:47:48 +08:00
package models
2021-05-25 15:49:13 +08:00
import "github.com/iwind/TeaGo/dbs"
2021-05-25 15:49:13 +08:00
// NSCluster 域名服务器集群
type NSCluster struct {
Id uint32 `field:"id"` // ID
2022-03-22 21:45:07 +08:00
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设置
2022-07-27 16:56:17 +08:00
Tcp dbs.JSON `field:"tcp"` // TCP设置
Tls dbs.JSON `field:"tls"` // TLS设置
Udp dbs.JSON `field:"udp"` // UDP设置
2021-05-25 15:49:13 +08:00
}
type NSClusterOperator struct {
Id interface{} // ID
IsOn interface{} // 是否启用
Name interface{} // 集群名
InstallDir interface{} // 安装目录
State interface{} // 状态
2021-06-02 11:53:24 +08:00
AccessLog interface{} // 访问日志配置
2021-08-11 21:00:29 +08:00
GrantId interface{} // 授权ID
2021-08-21 16:46:41 +08:00
Recursion interface{} // 递归DNS设置
2022-07-27 16:56:17 +08:00
Tcp interface{} // TCP设置
Tls interface{} // TLS设置
Udp interface{} // UDP设置
2021-05-25 15:49:13 +08:00
}
func NewNSClusterOperator() *NSClusterOperator {
return &NSClusterOperator{}
}