// Config defines the configuration options for the DNS processor.
type Config struct {
CacheConfig
Nameservers []string `config:"nameservers"`
...
}
// CacheConfig defines the success and failure caching parameters.
type CacheConfig struct {
SuccessCache CacheSettings `config:"success_cache"`
FailureCache CacheSettings `config:"failure_cache"`
}
should work like:
// Config defines the configuration options for the DNS processor.
type Config struct {
SuccessCache CacheSettings `config:"success_cache"`
FailureCache CacheSettings `config:"failure_cache"`
Nameservers []string `config:"nameservers"`
...
}
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.