Documentation ¶
Overview ¶
*
- Copyright 2015 @ 56x.net.
- name : echo
- author : jarryliu
- date : 2015-12-04 10:51
- description :
- history :
*
- Copyright 2015 @ at3.net.
- name : middleware.go
- author : jarryliu
- date : 2016-11-20 22:42
- description :
- history :
Index ¶
- func NewRenderer(t *gof.CacheTemplate) echo.Renderer
- func StopAttackMiddleware(h echo.HandlerFunc) echo.HandlerFunc
- type Context
- func (c *Context) Debug(err error) error
- func (c *Context) Error(err error)
- func (c *Context) IsPost() bool
- func (c *Context) NewData() *TemplateData
- func (c *Context) RealIp() string
- func (c *Context) Render(code int, name string, data interface{}) error
- func (c *Context) RenderOK(name string, data interface{}) error
- func (c *Context) RequestRawURI(r *http.Request) string
- func (c *Context) StringOK(s string) error
- type Echo
- func (e *Echo) Any(path string, h Handler)
- func (e *Echo) Auto(prefix string, i interface{})
- func (e *Echo) AutoGET(prefix string, i interface{})
- func (e *Echo) AutoPOST(prefix string, i interface{})
- func (e *Echo) Classic() *echo.Echo
- func (e *Echo) GET(path string, h Handler)
- func (e *Echo) GetVariable(key string) interface{}
- func (e *Echo) Group(prefix string, m ...echo.MiddlewareFunc) *Group
- func (e *Echo) Original() *echo.Echo
- func (e *Echo) POST(path string, h Handler)
- func (e *Echo) SetApp(app gof.App)
- func (e *Echo) SetRenderer(r echo.Renderer)
- func (e *Echo) SetVariable(key string, v interface{})
- func (e *Echo) Static(prefix, root string)
- type Group
- func (g *Group) Any(path string, h Handler)
- func (g *Group) Auto(prefix string, i interface{})
- func (g *Group) AutoGET(prefix string, i interface{})
- func (g *Group) AutoPOST(prefix string, i interface{})
- func (g *Group) Classic() *echo.Group
- func (g *Group) GET(path string, h Handler)
- func (g *Group) POST(path string, h Handler)
- type GroupHandler
- type Handler
- type TemplateData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRenderer ¶
func NewRenderer(t *gof.CacheTemplate) echo.Renderer
Types ¶
type Context ¶
type Context struct { echo.Context App gof.App Session *session.Session Storage storage.Interface // contains filtered or unexported fields }
func (*Context) NewData ¶
func (c *Context) NewData() *TemplateData
type Echo ¶
type Echo struct { *echo.Echo // contains filtered or unexported fields }
type GroupHandler ¶ added in v1.10.0
type GroupHandler interface {
Handle(group *echo.Group)
}
type TemplateData ¶
Click to show internal directories.
Click to hide internal directories.