Documentation ¶
Index ¶
Constants ¶
View Source
const ConfigFile = "smeter.yml"
ConfigFile is the file name.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Server struct { Port string `yaml:"port"` Host string `yaml:"host"` SSL bool `yaml:"ssl"` CA string `yaml:"ca"` KEY string `yaml:"key"` } Database struct { Port string `yaml:"port"` Host string `yaml:"host"` UserName string `yaml:"username"` Password string `yaml:"password"` DBName string `yaml:"db"` SSL bool `yaml:"ssl"` } }
Config structure
Click to show internal directories.
Click to hide internal directories.