Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupLogging ¶
func SetupLogging(config MiscConf)
Types ¶
type MqttConf ¶
type MqttConf struct { Url string Username string Password string // if empty, the system certificates are used CertFile string Topics MqttTopicsConf }
type MqttTopicsConf ¶
type StdErrLogHook ¶
type StdErrLogHook struct { }
A hook that prints logs with level Warn and up always to the stderr, even if a log file is written.
func (*StdErrLogHook) Levels ¶
func (h *StdErrLogHook) Levels() []logrus.Level
type TomlConfig ¶
type TomlConfig struct { Mqtt MqttConf MySql MySqlConf Twitter TwitterConf Web WebServiceConf Misc MiscConf }
func LoadConfig ¶
func LoadConfig(configFile string) TomlConfig
type TwitterConf ¶
type TwitterConf struct { Mocking bool // # if true, it does everthing except the actual tweet. Useful for developing. Enabled bool TwitterdelayInSec int // delay tweeting after space state change for this long; it's also the minimum time between two tweets // auth ConsumerKey string ConsumerSecret string AccessTokenKey string AccessTokenSecret string }
type WebServiceConf ¶
Click to show internal directories.
Click to hide internal directories.