conf

package
v0.0.0-...-7797f25 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Location

type Location struct {
	Name string
	Ids  []int
}

type MacDbConf

type MacDbConf struct {
	MasterFile string
	UserFile   string
}

type MiscConf

type MiscConf struct {
	DebugLogging bool
	Logfile      string
}

type MqttConf

type MqttConf struct {
	Url      string
	Username string
	Password string
	// if empty, the system certificates are used
	CertFile                 string
	SessionTopic             string
	DevicesTopic             string
	WatchDogTimeoutInMinutes int
}

type ServerConf

type ServerConf struct {
	Host     string
	Port     int
	Https    bool
	KeyFile  string
	CertFile string
}

type TomlConfig

type TomlConfig struct {
	Misc      MiscConf
	Server    ServerConf
	MacDb     MacDbConf
	Mqtt      MqttConf
	Locations []Location `toml:"location"`
}

func LoadConfig

func LoadConfig(configFile string) TomlConfig

Jump to

Keyboard shortcuts

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