server

package
v0.0.0-...-1606966 Latest Latest
Warning

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

Go to latest
Published: May 30, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Index

func Index(c *gin.Context)

Types

type API

type API struct {
	Router      *gin.Engine
	Config      *viper.Viper
	Database    *mgo.Database
	EmailSender services.EmailSender
	Redis       *services.Redis
}

API Structure that gathers all services

func (*API) SetupDatabase

func (a *API) SetupDatabase() (*mgo.Session, error)

func (*API) SetupIndexes

func (a *API) SetupIndexes() error

func (*API) SetupRedis

func (a *API) SetupRedis()

func (*API) SetupRouter

func (a *API) SetupRouter()

func (*API) SetupViper

func (a *API) SetupViper() error

func (*API) SetupViperDefaults

func (a *API) SetupViperDefaults()

Jump to

Keyboard shortcuts

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