Documentation
¶
Index ¶
- Constants
- Variables
- type Asset
- type Context
- func (ctx *Context) AddFlash(flashMessage string, flashType string)
- func (ctx *Context) DataMap() echo.Map
- func (ctx *Context) DeleteCsrfCookie()
- func (ctx *Context) DeleteSession()
- func (ctx *Context) ErrorRes(code int, message string, err error) error
- func (ctx *Context) GetData(key string) any
- func (ctx *Context) GetSession() *sessions.Session
- func (ctx *Context) Html(template string) error
- func (ctx *Context) HtmlWithCode(code int, template string) error
- func (ctx *Context) Json(data any) error
- func (ctx *Context) JsonWithCode(code int, data any) error
- func (ctx *Context) NotFound(message string) error
- func (ctx *Context) PlainText(code int, message string) error
- func (ctx *Context) RedirectTo(location string) error
- func (ctx *Context) SaveSession(sess *sessions.Session)
- func (ctx *Context) SetData(key string, value any)
- func (ctx *Context) Tr(key string, args ...any) string
- func (ctx *Context) TrH(key string, args ...any) template.HTML
- type Store
Constants ¶
View Source
const DataKeyStr dataKey = "data"
Variables ¶
View Source
var ManifestEntries map[string]Asset
Functions ¶
This section is empty.
Types ¶
type Context ¶
func NewContext ¶
func (*Context) DeleteCsrfCookie ¶
func (ctx *Context) DeleteCsrfCookie()
func (*Context) DeleteSession ¶
func (ctx *Context) DeleteSession()
func (*Context) GetSession ¶
func (*Context) RedirectTo ¶
func (*Context) SaveSession ¶
Click to show internal directories.
Click to hide internal directories.