Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PageHandler ¶
type PageHandler interface {
ShowHome(w http.ResponseWriter, r *http.Request)
}
func NewPageHandler ¶
func NewPageHandler(sess *scs.SessionManager, svc service.UserService) PageHandler
type TemplateData ¶
type TemplateData struct {
CSRFToken string
StringSlice []string
StringMap map[string]string
IntMap map[string]int
FloatMap map[string]float32
Data map[string]interface{}
Flash string
Warning string
Error string
Form *forms.Form
IsAuthenticated int
Title string
InfoMsg string
WarnMsg string
ErrMsg string
}
func AddDefaultData ¶
func AddDefaultData(r *http.Request, td *TemplateData) *TemplateData
Click to show internal directories.
Click to hide internal directories.