server

package
v0.0.0-...-20c7f3d Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2019 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AvailableLanguages = []string{"en", "fr", "ru"}

Functions

func Index

func Index(c *gin.Context)

Types

type API

type API struct {
	Router   *gin.Engine
	Config   *viper.Viper
	Database *mgo.Database
	Mailer   email.EmailSender
	Worker   *worker.Worker
	I18n     *i18n.Bundle
}

func (*API) SetupConfig

func (a *API) SetupConfig() error

func (*API) SetupDatabase

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

func (*API) SetupI18n

func (a *API) SetupI18n() error

func (*API) SetupMailer

func (a *API) SetupMailer() error

func (*API) SetupRouter

func (a *API) SetupRouter()

func (*API) SetupSeeds

func (a *API) SetupSeeds() error

func (*API) SetupWorker

func (a *API) SetupWorker() error

Jump to

Keyboard shortcuts

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