Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitLogger ¶
func ReadConfigFile ¶
func ReadConfigFile() error
func RunSetup ¶
func RunSetup() error
Used for setting up a Smarthome server quickly Reads a setup file at startup and starts functions that initialize those values in the database
func RunSetupStruct ¶ added in v0.0.48
func RunSetupStruct(setup SetupStruct) error
Types ¶
type Config ¶
type Config struct { Server ServerConfig `json:"server"` Database database.DatabaseConfig `json:"database"` }
type ServerConfig ¶
type SetupStruct ¶ added in v0.0.48
type SetupStruct struct { Users []setupUser `json:"users"` Rooms []setupRoom `json:"rooms"` HardwareNodes []setupHardwareNode `json:"hardwareNodes"` ServerConfiguration database.ServerConfig `json:"serverConfiguration"` }
func Export ¶ added in v0.0.48
func Export() (SetupStruct, error)
Click to show internal directories.
Click to hide internal directories.