Example #1
0
func init() {
	ModuleLog = log.New("Module")
	DBLog = log.New("Database")
	Register(users.Module)

	config.Register("DEFAULT", "port", "8080", "The port on which to run the webserver")
	config.Register("DEFAULT", "assetDirectory", "assets", `
		The directory to find static assets and templates. Can be an absolute path or
		relative to the executable.
		`)

	config.Register("Database", "username", "", "The database username")
	config.Register("Database", "password", "", "The database password")
	config.Register("Database", "database", "", "The name of the database to use")
	config.Register("Database", "host", "localhost", "The database host")
}
Example #2
0
func init() {
	config.Register("Branding", "siteName", "Go Data", "The name of the system")
}
Example #3
0
func init() {
	config.Register("Branding", "rootSubjectURIPrefix", "s", "The Prefix in the URI for root subjects.")
}