Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct { Server *http.Server Router *mux.Router Logger *zap.Logger Config *config.Config }
Application is our main application struct.
func (*Application) Respond ¶
func (app *Application) Respond(response http.ResponseWriter, request *http.Request, data interface{}, status int)
Respond - simplify responding from the API
func (*Application) Run ¶
func (app *Application) Run()
Run - Lets run our Application server or panic.
func (*Application) WaitForShutdown ¶
func (app *Application) WaitForShutdown()
WaitForShutdown - Lets wait for a shutdown signal and shutdown gracefully
Click to show internal directories.
Click to hide internal directories.