Documentation ¶
Overview ¶
Package handler contains everything related to handle http requests
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Handler ¶
type Handler struct {
TemplateProvider
}
Handler contains all handlers (main handler struct)
type SurveyTemplateProvider ¶
type SurveyTemplateProvider struct {
business.SurveyProvider
}
SurveyTemplateProvider build html pages for surveys based on a survey template
func (SurveyTemplateProvider) ProvideTemplate ¶
func (sr SurveyTemplateProvider) ProvideTemplate(c echo.Context) error
ProvideTemplate build a html page based on the model.Survey found by id
type TemplateProvider ¶
type TemplateProvider interface { // ProvideTemplate handles http requests made to obtain a html template (page) ProvideTemplate(echo.Context) error }
TemplateProvider defines a provider of html templates
Click to show internal directories.
Click to hide internal directories.