Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ListeningAddress string `mapstructure:"LISTENING_ADDRESS"` DeviceID int `mapstructure:"DEVICE_ID"` BrokerAddress string `mapstructure:"BROKER_ADDRESS"` BrokerPort int `mapstructure:"BROKER_PORT"` BrokerUser string `mapstructure:"BROKER_USER"` BrokerPassword string `mapstructure:"BROKER_PASSWORD"` BrokerTopic string `mapstructure:"BROKER_TOPIC"` ClientID string `mapstructure:"CLIENT_ID"` }
Config stores all configuration of the application. The values are read by viper from a config file or environment variable.
func LoadConfig ¶
LoadConfig reads configuration from file environment variables.
Click to show internal directories.
Click to hide internal directories.