Documentation
¶
Index ¶
- type NSDomain
- type NSDomainGroup
- type NSDomainGroupOperator
- type NSDomainOperator
- type NSKey
- type NSKeyOperator
- type NSPlan
- type NSPlanOperator
- type NSQuestionOption
- type NSQuestionOptionOperator
- type NSRecord
- type NSRecordHourlyStat
- type NSRecordHourlyStatOperator
- type NSRecordOperator
- type NSRoute
- type NSRouteOperator
- type NSUserPlan
- type NSUserPlanOperator
- type NSZone
- type NSZoneOperator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NSDomain ¶
type NSDomain struct {
Id uint64 `field:"id"` // ID
ClusterId uint32 `field:"clusterId"` // 集群ID
UserId uint32 `field:"userId"` // 用户ID
IsOn bool `field:"isOn"` // 是否启用
Name string `field:"name"` // 域名
GroupIds dbs.JSON `field:"groupIds"` // 分组ID
Tsig dbs.JSON `field:"tsig"` // TSIG配置
VerifyTXT string `field:"verifyTXT"` // 验证用的TXT
VerifyExpiresAt uint64 `field:"verifyExpiresAt"` // 验证TXT过期时间
CreatedAt uint64 `field:"createdAt"` // 创建时间
Version uint64 `field:"version"` // 版本号
Status string `field:"status"` // 状态:none|verified
State uint8 `field:"state"` // 状态
}
NSDomain DNS域名
func (*NSDomain) DecodeGroupIds ¶ added in v0.5.0
type NSDomainGroup ¶ added in v0.5.0
type NSDomainGroup struct {
Id uint64 `field:"id"` // ID
UserId uint64 `field:"userId"` // 用户ID
Name string `field:"name"` // 分组名称
IsOn bool `field:"isOn"` // 是否启用
Order uint32 `field:"order"` // 排序
State uint8 `field:"state"` // 状态
}
NSDomainGroup 域名分组
type NSDomainGroupOperator ¶ added in v0.5.0
type NSDomainGroupOperator struct {
Id interface{} // ID
UserId interface{} // 用户ID
Name interface{} // 分组名称
IsOn interface{} // 是否启用
Order interface{} // 排序
State interface{} // 状态
}
func NewNSDomainGroupOperator ¶ added in v0.5.0
func NewNSDomainGroupOperator() *NSDomainGroupOperator
type NSDomainOperator ¶
type NSDomainOperator struct {
Id any // ID
ClusterId any // 集群ID
UserId any // 用户ID
IsOn any // 是否启用
Name any // 域名
GroupIds any // 分组ID
Tsig any // TSIG配置
VerifyTXT any // 验证用的TXT
VerifyExpiresAt any // 验证TXT过期时间
CreatedAt any // 创建时间
Version any // 版本号
Status any // 状态:none|verified
State any // 状态
}
func NewNSDomainOperator ¶
func NewNSDomainOperator() *NSDomainOperator
type NSKey ¶
type NSKey struct {
Id uint64 `field:"id"` // ID
IsOn bool `field:"isOn"` // 状态
Name string `field:"name"` // 名称
DomainId uint64 `field:"domainId"` // 域名ID
ZoneId uint64 `field:"zoneId"` // 子域ID
Algo string `field:"algo"` // 算法
Secret string `field:"secret"` // 密码
SecretType string `field:"secretType"` // 密码类型
Version uint64 `field:"version"` // 版本号
State uint8 `field:"state"` // 状态
}
NSKey 密钥管理
type NSKeyOperator ¶
type NSKeyOperator struct {
Id interface{} // ID
IsOn interface{} // 状态
Name interface{} // 名称
DomainId interface{} // 域名ID
ZoneId interface{} // 子域ID
Algo interface{} // 算法
Secret interface{} // 密码
SecretType interface{} // 密码类型
Version interface{} // 版本号
State interface{} // 状态
}
func NewNSKeyOperator ¶
func NewNSKeyOperator() *NSKeyOperator
type NSPlan ¶ added in v0.5.3
type NSPlan struct {
Id uint32 `field:"id"` // ID
Name string `field:"name"` // 套餐名称
IsOn bool `field:"isOn"` // 是否启用
MonthlyPrice float64 `field:"monthlyPrice"` // 月价格
YearlyPrice float64 `field:"yearlyPrice"` // 年价格
Order uint32 `field:"order"` // 排序
Config dbs.JSON `field:"config"` // 配置
State uint8 `field:"state"` // 状态
}
NSPlan NS套餐
type NSPlanOperator ¶ added in v0.5.3
type NSPlanOperator struct {
Id any // ID
Name any // 套餐名称
IsOn any // 是否启用
MonthlyPrice any // 月价格
YearlyPrice any // 年价格
Order any // 排序
Config any // 配置
State any // 状态
}
func NewNSPlanOperator ¶ added in v0.5.3
func NewNSPlanOperator() *NSPlanOperator
type NSQuestionOption ¶
type NSQuestionOption struct {
Id uint64 `field:"id"` // ID
Name string `field:"name"` // 选项名
Values dbs.JSON `field:"values"` // 选项值
CreatedAt uint64 `field:"createdAt"` // 创建时间
}
NSQuestionOption DNS请求选项
type NSQuestionOptionOperator ¶
type NSQuestionOptionOperator struct {
Id interface{} // ID
Name interface{} // 选项名
Values interface{} // 选项值
CreatedAt interface{} // 创建时间
}
func NewNSQuestionOptionOperator ¶
func NewNSQuestionOptionOperator() *NSQuestionOptionOperator
type NSRecord ¶
type NSRecord struct {
Id uint64 `field:"id"` // ID
DomainId uint32 `field:"domainId"` // 域名ID
IsOn bool `field:"isOn"` // 是否启用
Description string `field:"description"` // 备注
Name string `field:"name"` // 记录名
Type string `field:"type"` // 类型
Value string `field:"value"` // 值
Ttl uint32 `field:"ttl"` // TTL(秒)
Weight uint32 `field:"weight"` // 权重
RouteIds dbs.JSON `field:"routeIds"` // 线路
CreatedAt uint64 `field:"createdAt"` // 创建时间
Version uint64 `field:"version"` //
State uint8 `field:"state"` // 状态
}
NSRecord DNS记录
func (*NSRecord) DecodeRouteIds ¶
type NSRecordHourlyStat ¶
type NSRecordHourlyStat struct {
Id uint64 `field:"id"` // ID
ClusterId uint32 `field:"clusterId"` // 集群ID
NodeId uint32 `field:"nodeId"` // 节点ID
DomainId uint64 `field:"domainId"` // 域名ID
RecordId uint64 `field:"recordId"` // 记录ID
Day string `field:"day"` // YYYYMMDD
Hour string `field:"hour"` // YYYYMMDDHH
CountRequests uint64 `field:"countRequests"` // 请求数
Bytes uint64 `field:"bytes"` // 流量
}
NSRecordHourlyStat NS记录统计
type NSRecordHourlyStatOperator ¶
type NSRecordHourlyStatOperator struct {
Id interface{} // ID
ClusterId interface{} // 集群ID
NodeId interface{} // 节点ID
DomainId interface{} // 域名ID
RecordId interface{} // 记录ID
Day interface{} // YYYYMMDD
Hour interface{} // YYYYMMDDHH
CountRequests interface{} // 请求数
Bytes interface{} // 流量
}
func NewNSRecordHourlyStatOperator ¶
func NewNSRecordHourlyStatOperator() *NSRecordHourlyStatOperator
type NSRecordOperator ¶
type NSRecordOperator struct {
Id interface{} // ID
DomainId interface{} // 域名ID
IsOn interface{} // 是否启用
Description interface{} // 备注
Name interface{} // 记录名
Type interface{} // 类型
Value interface{} // 值
Ttl interface{} // TTL(秒)
Weight interface{} // 权重
RouteIds interface{} // 线路
CreatedAt interface{} // 创建时间
Version interface{} //
State interface{} // 状态
}
func NewNSRecordOperator ¶
func NewNSRecordOperator() *NSRecordOperator
type NSRoute ¶
type NSRoute struct {
Id uint32 `field:"id"` // ID
IsOn bool `field:"isOn"` // 是否启用
ClusterId uint32 `field:"clusterId"` // 集群ID
DomainId uint32 `field:"domainId"` // 域名ID
UserId uint32 `field:"userId"` // 用户ID
Name string `field:"name"` // 名称
Ranges dbs.JSON `field:"ranges"` // 范围
Order uint32 `field:"order"` // 排序
Version uint64 `field:"version"` // 版本号
Code string `field:"code"` // 代号
State uint8 `field:"state"` // 状态
}
NSRoute DNS线路
type NSRouteOperator ¶
type NSRouteOperator struct {
Id interface{} // ID
IsOn interface{} // 是否启用
ClusterId interface{} // 集群ID
DomainId interface{} // 域名ID
UserId interface{} // 用户ID
Name interface{} // 名称
Ranges interface{} // 范围
Order interface{} // 排序
Version interface{} // 版本号
Code interface{} // 代号
State interface{} // 状态
}
func NewNSRouteOperator ¶
func NewNSRouteOperator() *NSRouteOperator
type NSUserPlan ¶ added in v0.5.3
type NSUserPlan struct {
Id uint64 `field:"id"` // ID
UserId uint64 `field:"userId"` // 用户ID
PlanId uint32 `field:"planId"` // 套餐ID
DayFrom string `field:"dayFrom"` // YYYYMMDD
DayTo string `field:"dayTo"` // YYYYMMDD
PeriodUnit string `field:"periodUnit"` // monthly|yearly
CreatedAt uint64 `field:"createdAt"` // 创建时间
State uint8 `field:"state"` // 状态
}
NSUserPlan 用户套餐
type NSUserPlanOperator ¶ added in v0.5.3
type NSUserPlanOperator struct {
Id any // ID
UserId any // 用户ID
PlanId any // 套餐ID
DayFrom any // YYYYMMDD
DayTo any // YYYYMMDD
PeriodUnit any // monthly|yearly
CreatedAt any // 创建时间
State any // 状态
}
func NewNSUserPlanOperator ¶ added in v0.5.3
func NewNSUserPlanOperator() *NSUserPlanOperator
type NSZone ¶
type NSZone struct {
Id uint64 `field:"id"` // ID
DomainId uint64 `field:"domainId"` // 域名ID
IsOn bool `field:"isOn"` // 是否启用
Order uint32 `field:"order"` // 排序
Version uint64 `field:"version"` // 版本
Tsig dbs.JSON `field:"tsig"` // TSIG配置
State uint8 `field:"state"` // 状态
}
NSZone 域名子域
type NSZoneOperator ¶
type NSZoneOperator struct {
Id interface{} // ID
DomainId interface{} // 域名ID
IsOn interface{} // 是否启用
Order interface{} // 排序
Version interface{} // 版本
Tsig interface{} // TSIG配置
State interface{} // 状态
}
func NewNSZoneOperator ¶
func NewNSZoneOperator() *NSZoneOperator
Source Files
¶
- ns_domain_group_model.go
- ns_domain_group_model_ext.go
- ns_domain_model.go
- ns_domain_model_ext.go
- ns_key_model.go
- ns_key_model_ext.go
- ns_plan_model.go
- ns_plan_model_ext.go
- ns_question_option_model.go
- ns_question_option_model_ext.go
- ns_record_hourly_stat_model.go
- ns_record_hourly_stat_model_ext.go
- ns_record_model.go
- ns_record_model_ext.go
- ns_route_model.go
- ns_route_model_ext.go
- ns_user_plan_model.go
- ns_user_plan_model_ext.go
- ns_zone_model.go
- ns_zone_model_ext.go
Click to show internal directories.
Click to hide internal directories.