Versions in this module Expand all Collapse all v1 v1.0.0 Jul 19, 2018 Changes in this version + const CSRFCookie + const CSRFHeader + const CSRFKey + func APIInvalidHandler(w http.ResponseWriter, _ *http.Request) + func DisableLog() + func GojiWebHandlerFunc(h http.HandlerFunc) web.HandlerFunc + func ReloadTemplatesSig(_ *Application) — windows/amd64 + func ReloadTemplatesSig(app *Application) — darwin/amd64, linux/amd64 + func UseLogger(logger btclog.Logger) + func WriteAPIResponse(resp *APIResponse, code int, w http.ResponseWriter) + type APIResponse struct + Code codes.Code + Data interface{} + Message string + Status string + func NewAPIResponse(status string, code codes.Code, message string, data interface{}) *APIResponse + type Application struct + APISecret string + CsrfProtection *CsrfProtection + DbMap *gorp.DbMap + Store *sessions.CookieStore + Template *template.Template + TemplatesPath string + func (application *Application) APIHandler(apiFun func(web.C, *http.Request) *APIResponse) web.HandlerFunc + func (application *Application) ApplyAPI(c *web.C, h http.Handler) http.Handler + func (application *Application) ApplyAuth(c *web.C, h http.Handler) http.Handler + func (application *Application) ApplyCsrfProtection(c *web.C, h http.Handler) http.Handler + func (application *Application) ApplyDbMap(c *web.C, h http.Handler) http.Handler + func (application *Application) ApplyGzip(c *web.C, h http.Handler) http.Handler + func (application *Application) ApplyIsXhr(c *web.C, h http.Handler) http.Handler + func (application *Application) ApplySessions(c *web.C, h http.Handler) http.Handler + func (application *Application) ApplyTemplates(c *web.C, h http.Handler) http.Handler + func (application *Application) Close() + func (application *Application) Init(APISecret string, baseURL string, cookieSecret string, cookieSecure bool, ...) + func (application *Application) LoadTemplates(templatePath string) error + func (application *Application) Route(controller interface{}, route string) web.HandlerFunc + type Controller struct + func (controller *Controller) GetDbMap(c web.C) *gorp.DbMap + func (controller *Controller) GetSession(c web.C) *sessions.Session + func (controller *Controller) GetTemplate(c web.C) *template.Template + func (controller *Controller) IsXhr(c web.C) bool + func (controller *Controller) Parse(t *template.Template, name string, data interface{}) string + type CsrfProtection struct + Cookie string + Header string + Key string + Secure bool