Documentation
¶
Overview ¶
Package config provides structures and methods to parse /etc/hosts-like configuration files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checker ¶ added in v0.5.0
type Checker struct {
FileName string
CheckInterval time.Duration
Delay time.Duration
UpdateFn func(Config)
}
Checker is a configuration checker.
type Config ¶
type Config struct {
Sections []Section
}
Config represents the DNS server configuration.
type Section ¶
type Section struct {
Aliases []Alias
SectionConfig
}
Section represents a section of the configuration.
type SectionConfig ¶
SectionConfig represents the configuration of a section.
func (*SectionConfig) UnmarshalYAML ¶
func (s *SectionConfig) UnmarshalYAML(v *yaml.Node) error
UnmarshalYAML unmarshals a YAML node into a SectionConfig.
Click to show internal directories.
Click to hide internal directories.