Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
Application is the struct that contains the server handler as well as any references to services that the application needs.
func NewApplication ¶
func NewApplication(db *sqlx.DB) *Application
NewApplication returns a new pointer to Application with route definitions initiated.
func (*Application) ServeHTTP ¶
func (a *Application) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP implements the http.Handler interface for the Application type.
Click to show internal directories.
Click to hide internal directories.