Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // The (optional ip address and) port for HTTP to listen on ListenAddress string // The administrator password, only set on first run AdminPwd string // The hostname:port to use for MongoDB connections MongoAddress string // The name of the MongoDB database DatabaseName string }
Config abstracts the config file for the application
var GlobalConfig *Config
GlobalConfig is the singleton instance of Config
func LoadConfig ¶
LoadConfig returns a populated instance of Config from @path
@path: The full path to the config file
Click to show internal directories.
Click to hide internal directories.