Versions in this module Expand all Collapse all v0 v0.1.2 Aug 29, 2022 Changes in this version + const CSRFToken + const FlashCookie + const HeaderId + const SessionCookie + type Context struct + Flash Flash + Session Session + ViewData map[string]interface{} + func NewContext(w http.ResponseWriter, r *http.Request, options ContextOptions) *Context + func (c *Context) Redirect(url string) + func (c *Context) SetFlash(key string, value string) + type ContextOptions struct + type CookiesOptions struct + Domain string + HttpOnly bool + Path string + SameSite http.SameSite + Secure bool + type Engine struct + Cookies CookiesOptions + EnableCSRFToken bool + func NewEngine() *Engine + func (hw *Engine) GetContext(r *http.Request) *Context + func (hw *Engine) Handler(next http.Handler) http.Handler + type Flash map[string]string + func NewFlash() Flash + func (f Flash) Error(msg string) + func (f Flash) Success(msg string) + type Session map[string]interface + func NewSession() Session