app

package
v0.0.0-...-c74eed5 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2017 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package app contains our application and initialization function.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Router *httprouter.Router
	DB     *sql.DB
	Server *http.Server
	Stats  *stats.Stats
	Cfg    config
}

App struct holds the router, server, database and configuration that the application uses.

func Initialize

func Initialize() (app App, err error)

Initialize will populate the configuration, connect to the database, and instantiate the router and server and then return an app.

Jump to

Keyboard shortcuts

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