Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoSQLConfig = fmt.Errorf("no mysql config present")
ErrNoSQLConfig is returned if no mysql config is present.
Functions ¶
Types ¶
type Config ¶
type Config struct { ListenAddr string `toml:"listen_addr" xml:"listen_addr" json:"listenAddr"` Password string `toml:"password" xml:"password" json:"-"` LogFile string `toml:"log_file" xml:"log_file" json:"logFile"` ErrorFile string `toml:"error_file" xml:"error_file" json:"errorFile"` NoAuthPaths []string `toml:"no_auth_paths" xml:"no_auth_path" json:"noAuthPaths"` *userinfo.Config // contains mysql host, user, pass, logger. // contains filtered or unexported fields }
Config is the input data for the server.
func LoadConfig ¶
LoadConfig reads in a config file and/or env variables to configure the app.
Click to show internal directories.
Click to hide internal directories.