Documentation ¶
Overview ¶
Package config contains application configuration struct with the most useful functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Sources []source `yaml:"sources"` RouterScript struct { Redirect struct { Address string `yaml:"address"` } `yaml:"redirect"` Exclude struct { Hosts []string `yaml:"hosts"` } `yaml:"exclude"` Comment string `yaml:"comment"` MaxSourcesCount uint16 `yaml:"max_sources"` MaxSourceSizeBytes uint32 `yaml:"max_source_size"` } `yaml:"router_script"` }
Config is main application configuration.
func FromYamlFile ¶
FromYamlFile creates new config instance using YAML file.
Click to show internal directories.
Click to hide internal directories.