bootstrap

package
v0.0.0-...-f1a9239 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyMiddlewares

func ApplyMiddlewares(e *echo.Echo, conf *config.Config)

ApplyMiddlewares encapsulates the all the middleware instatiation used in the application

func GetConfiguration

func GetConfiguration(env *string) (conf *config.Config)

GetConfiguration gets the appropriate configuration for a specified environment

func RegisterRoutes

func RegisterRoutes(e *echo.Echo)

RegisterRoutes encapsulates the route addition for the application

Types

type Bootstrap

type Bootstrap struct {
	Server      *echo.Echo
	Environment *string
	Port        *int64
}

Bootstrap is the container structure for the bootstrap functions

func (*Bootstrap) Ignite

func (b *Bootstrap) Ignite()

Ignite calls in the bootstrap processes

type DB

type DB struct {
	User         string
	Password     string
	DatabaseName string
	DatabaseObj  **pg.DB
}

DB is the wrapper structure for database related entities

func (*DB) Close

func (db *DB) Close()

Close is a wrapper for the pg.DB.Close function which closes the database connection

func (*DB) Start

func (db *DB) Start()

Start sets up the database connection to be used by the application

Jump to

Keyboard shortcuts

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