config

package
v0.4.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Initialize

func Initialize(cfg string)

Initialize populates the Conf variable

Types

type GlobalConfig

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

var Conf GlobalConfig

Conf holds the global configuration

type JeedomConf

type JeedomConf struct {
	URL               string `toml:"url"`
	APIKey            string `toml:"apikey"`
	Enabled           bool
	AutoCreateObjects bool `toml:"autoCreateObjects"`
}

JeedomConf holds the server config

type NhcConf

type NhcConf struct {
	Host string
	Port int
}

NhcConf holds the server config

type ServerConf

type ServerConf struct {
	ListenPort int    `toml:"listenPort"`
	LogLevel   string `toml:"logLevel"`
	LogPath    string `toml:"logPath"`
	GMHostPort string `toml:"gmHostPort"`
}

ServerConf holds the server config

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL