Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Config *viper.Viper
View Source
var MongoSession *mgo.Session
View Source
var Router *routing.Router
Functions ¶
func InitConfig ¶
func InitConfig(configFile string)
InitConfig initializes the app config parameters.
func InitDb ¶
func InitDb(dsn string)
InitDb initializes and setups the app db connection. NB! You have to close the connection manually (eg. `defer app.MongoSession.Close()`)
func InitRouter ¶
func InitRouter(mediaDir string)
InitRouter initializes and setups the app router components.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.