Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Gzip ¶
Gzip - Source: https://gist.github.com/bryfry/09a650eb8aac0fb76c24
Types ¶
type Handler ¶
type Handler struct { Router *router.Mux Render *htmltemplate.Engine Sess *websession.Session SiteURL string SiteScheme string }
Handler -
func NewHandler ¶
func NewHandler(te *htmltemplate.Engine, sess *websession.Session, mux *router.Mux, siteURL string, siteScheme string) *Handler
NewHandler -
func (*Handler) DisallowAnon ¶
DisallowAnon does not allow anonymous users to access the page.
func (*Handler) DisallowAuth ¶
DisallowAuth does not allow authenticated users to access the page.
func (*Handler) LogRequest ¶
LogRequest will log the HTTP requests.
Click to show internal directories.
Click to hide internal directories.