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 ¶
Initialize will populate the configuration, connect to the database, and instantiate the router and server and then return an app.
Click to show internal directories.
Click to hide internal directories.