dns clickhouse改造
This commit is contained in:
@@ -11,21 +11,23 @@ import (
|
||||
)
|
||||
|
||||
type NSNodeConfig struct {
|
||||
Id int64 `yaml:"id" json:"id"`
|
||||
IsPlus bool `yaml:"isPlus" json:"isPlus"`
|
||||
NodeId string `yaml:"nodeId" json:"nodeId"`
|
||||
Secret string `yaml:"secret" json:"secret"`
|
||||
ClusterId int64 `yaml:"clusterId" json:"clusterId"`
|
||||
AccessLogRef *NSAccessLogRef `yaml:"accessLogRef" json:"accessLogRef"`
|
||||
RecursionConfig *NSRecursionConfig `yaml:"recursionConfig" json:"recursionConfig"`
|
||||
DDoSProtection *ddosconfigs.ProtectionConfig `yaml:"ddosProtection" json:"ddosProtection"`
|
||||
AllowedIPs []string `yaml:"allowedIPs" json:"allowedIPs"`
|
||||
TimeZone string `yaml:"timeZone" json:"timeZone"` // 自动设置时区
|
||||
Hosts []string `yaml:"hosts" json:"hosts"` // 主机名
|
||||
Email string `yaml:"email" json:"email"`
|
||||
SOA *NSSOAConfig `yaml:"soa" json:"soa"` // SOA配置
|
||||
SOASerial uint32 `yaml:"soaSerial" json:"soaSerial"`
|
||||
DetectAgents bool `yaml:"detectAgents" json:"detectAgents"` // 是否实时监测Agents
|
||||
Id int64 `yaml:"id" json:"id"`
|
||||
IsPlus bool `yaml:"isPlus" json:"isPlus"`
|
||||
NodeId string `yaml:"nodeId" json:"nodeId"`
|
||||
Secret string `yaml:"secret" json:"secret"`
|
||||
ClusterId int64 `yaml:"clusterId" json:"clusterId"`
|
||||
AccessLogRef *NSAccessLogRef `yaml:"accessLogRef" json:"accessLogRef"`
|
||||
AccessLogWriteTargets *serverconfigs.AccessLogWriteTargets `yaml:"accessLogWriteTargets" json:"accessLogWriteTargets"`
|
||||
AccessLogFilePath string `yaml:"accessLogFilePath" json:"accessLogFilePath"`
|
||||
RecursionConfig *NSRecursionConfig `yaml:"recursionConfig" json:"recursionConfig"`
|
||||
DDoSProtection *ddosconfigs.ProtectionConfig `yaml:"ddosProtection" json:"ddosProtection"`
|
||||
AllowedIPs []string `yaml:"allowedIPs" json:"allowedIPs"`
|
||||
TimeZone string `yaml:"timeZone" json:"timeZone"` // 自动设置时区
|
||||
Hosts []string `yaml:"hosts" json:"hosts"` // 主机名
|
||||
Email string `yaml:"email" json:"email"`
|
||||
SOA *NSSOAConfig `yaml:"soa" json:"soa"` // SOA配置
|
||||
SOASerial uint32 `yaml:"soaSerial" json:"soaSerial"`
|
||||
DetectAgents bool `yaml:"detectAgents" json:"detectAgents"` // 是否实时监测Agents
|
||||
|
||||
TCP *serverconfigs.TCPProtocolConfig `yaml:"tcp" json:"tcp"` // TCP配置
|
||||
TLS *serverconfigs.TLSProtocolConfig `yaml:"tls" json:"tls"` // TLS配置
|
||||
|
||||
Reference in New Issue
Block a user