mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-12-30 06:46:36 +08:00
32 lines
983 B
Go
32 lines
983 B
Go
// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn .
|
|
|
|
package dnsconfigs
|
|
|
|
func DefaultNSUserConfig() *NSUserConfig {
|
|
return &NSUserConfig{
|
|
DefaultClusterId: 0,
|
|
DefaultPlanConfig: DefaultNSUserPlanConfig(),
|
|
}
|
|
}
|
|
|
|
func DefaultNSUserPlanConfig() *NSPlanConfig {
|
|
return &NSPlanConfig{
|
|
SupportCountryRoutes: true,
|
|
SupportChinaProvinceRoutes: true,
|
|
SupportISPRoutes: true,
|
|
MaxCustomRoutes: 0,
|
|
MaxLoadBalanceRecordsPerRecord: 100,
|
|
MinTTL: 60,
|
|
MaxDomains: 100,
|
|
MaxRecordsPerDomain: 1000,
|
|
SupportRecordStats: true,
|
|
SupportDomainAlias: false,
|
|
SupportAPI: false,
|
|
}
|
|
}
|
|
|
|
type NSUserConfig struct {
|
|
DefaultClusterId int64 `json:"defaultClusterId"` // 默认部署到的集群
|
|
DefaultPlanConfig *NSPlanConfig `json:"defaultPlanConfig"` // 默认套餐设置
|
|
}
|