initializers

package
v0.0.0-...-78f8226 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectDB

func ConnectDB(appEnv string) *gorm.DB

ConnectDB opens up a connection with db and returns it

func Initialize

func Initialize(appRouter *gin.Engine, appEnv string)

Initialize setups the app

func InitializeDatabase

func InitializeDatabase(appEnv string)

InitializeDatabase opens and sets the DB

func InitializeMiddleware

func InitializeMiddleware(appRouter *gin.Engine)

InitializeMiddleware adds middlewares to appRouter

func InitializeRoutes

func InitializeRoutes(appRouter *gin.Engine)

InitializeRoutes adds routes to appRouter

Types

This section is empty.

Jump to

Keyboard shortcuts

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