package
Version:
v0.4.4
Opens a new window with list of versions in this module.
Published: Nov 27, 2017
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Initialize populates the Conf variable
type GlobalConfig struct {
ServerConfig ServerConf `toml:"server"`
JeedomConfig JeedomConf `toml:"jeedom"`
NhcConfig NhcConf `toml:"nhc"`
}
GlobalConfig holds the structure of the yml configuration file
It has 3 sections: server, jeedom and nhc
Conf holds the global configuration
type JeedomConf struct {
URL string `toml:"url"`
APIKey string `toml:"apikey"`
Enabled bool
AutoCreateObjects bool `toml:"autoCreateObjects"`
}
JeedomConf holds the server config
NhcConf holds the server config
type ServerConf struct {
ListenPort int `toml:"listenPort"`
LogLevel string `toml:"logLevel"`
LogPath string `toml:"logPath"`
GMHostPort string `toml:"gmHostPort"`
}
ServerConf holds the server config
Source Files
¶
Click to show internal directories.
Click to hide internal directories.