Documentation
¶
Overview ¶
*
- Copyright 2015 @ z3q.net.
- name : echo
- author : jarryliu
- date : 2015-12-04 10:51
- description :
- history :
*
- Copyright 2015 @ z3q.net.
- name : render
- author : jarryliu
- date : 2015-12-11 17:46
- description :
- history :
Index ¶
- func GetGlobTemplateVars() map[string]interface{}
- func GlobSet(globVars map[string]interface{}, w RenderWatchFunc)
- func StopAttack(h echo.HandlerFunc) echo.HandlerFunc
- type Context
- func (this *Context) Debug(err error) error
- func (this *Context) HttpRequest() *http.Request
- func (this *Context) HttpResponse() http.ResponseWriter
- func (this *Context) NewData() *TemplateData
- func (this *Context) Render(code int, name string, data interface{}) error
- func (this *Context) RenderOK(name string, data interface{}) error
- func (this *Context) StringOK(s string) error
- type Echo
- func (this *Echo) Aanyx(path string, obj interface{})
- func (this *Echo) Agetx(path string, obj interface{})
- func (this *Echo) Anyx(path string, h Handler)
- func (this *Echo) Apostx(path string, obj interface{})
- func (this *Echo) Getx(path string, h Handler)
- func (this *Echo) Postx(path string, h Handler)
- func (this *Echo) SetTemplateRender(path string)
- type GoTemplateForEcho
- type Handler
- type HandlerProvider
- type HttpHosts
- type RenderWatchFunc
- type TemplateData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Context ¶
type Context struct { *echo.Context App gof.App Session *session.Session // contains filtered or unexported fields }
func ParseContext ¶
func (*Context) HttpRequest ¶
func (*Context) HttpResponse ¶
func (this *Context) HttpResponse() http.ResponseWriter
func (*Context) NewData ¶
func (this *Context) NewData() *TemplateData
type Echo ¶
type Echo struct { *echo.Echo // contains filtered or unexported fields }
type GoTemplateForEcho ¶
type GoTemplateForEcho struct {
// contains filtered or unexported fields
}
type HandlerProvider ¶
type RenderWatchFunc ¶
type RenderWatchFunc func(echo.Renderer)
type TemplateData ¶
func NewRenderData ¶
func NewRenderData() *TemplateData
Click to show internal directories.
Click to hide internal directories.