Documentation
¶
Overview ¶
Package config handles the configuraion for the God Game Engine Program.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfiguration ¶
func LoadConfiguration()
LoadConfiguration Loads the configuration and sets the global variable.
Types ¶
type GodGameConfiguration ¶
type GodGameConfiguration struct {
StaticPath string
MongoUserName string
MongoPassword string
MongoServerURL string
MongoSession *mgo.Session
TemplateRoot string
AdminToken string
MinimumNameLength int
MinPasswordLength int
EncKey string
AuthKey string
SMTPServer string
SMTPPort int
FromAddress string
FromName string
SMTPPassword string
SMTPUserName string
Router *mux.Router
Database *gorm.DB //Not in the Config File.
}
GodGameConfiguration holds the configuration information for the GGE program.
var Config *GodGameConfiguration
Config holds the system configuration.
func GetConfigs ¶
func GetConfigs() *GodGameConfiguration
GetConfigs returns a configuration struct.
Click to show internal directories.
Click to hide internal directories.