Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CollectorConfig ¶
type Config ¶
type Config struct { Env EnvConfig Interfaces []string `yaml:"interfaces"` Tests []string `yaml:"tests"` ResultHandlers []string `yaml:"resultHandlers"` Ookla OoklaConfig `yaml:"ookla"` CSV CSVConfig `yaml:"csv"` Collector CollectorConfig `yaml:"collector"` }
Config encapsulates all speed-demon agent configuration
type EnvConfig ¶
type EnvConfig struct { TestFrequency int `envconfig:"TEST_FREQUENCY" default:"30"` AgentLogLevel string `envconfig:"LOG_LEVEL" default:"info"` ConfigFile string `envconfig:"CONFIG_FILE" default:"/etc/speed-demon/config.yml"` }
EnvConfig encapsulates low level configuration details specified by environment variables. Note that most other configuration is loaded from a YAML file specified by EnvConfig's ConfigFile attribute.
type OoklaConfig ¶
type OoklaConfig struct {
ServerID int `yaml:"serverId"`
}
Click to show internal directories.
Click to hide internal directories.