app

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2018 License: BSD-3-Clause Imports: 15 Imported by: 0

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 InitApp

func InitApp() error

InitApp initializes all main app components.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL