Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Schedule int `mapstructure:"schedule,omitempty"` Wio struct { BasePath string `mapstructure:"base_path"` BasePort string `mapstructure:"base_port"` } `mapstructure:"wio"` Sensors []Sensor `mapstructure:"sensors"` }
func LoadConfig ¶
LoadConfig returns a config from viper and updates channel
type Sensor ¶
type Sensor struct { Name string `mapstructure:"name"` SensorTarget string `mapstructure:"sensor_target"` SensorPath string `mapstructure:"sensor_path"` SensorKey string `mapstructure:"sensor_key"` SensorTokenKey string `mapstructure:"sensor_token_key"` SensorTokenPath string `mapstructure:"sensor_token_path"` }
Click to show internal directories.
Click to hide internal directories.