Documentation
¶
Index ¶
- type Context
- func (c *Context) BindJSON(v interface{}) error
- func (c *Context) Cookie(name string) (*http.Cookie, error)
- func (c *Context) File(status int, filepath string) error
- func (c *Context) GetHeader(key string) string
- func (c *Context) GetValue(key interface{}) interface{}
- func (c *Context) HTML(status int, html string) error
- func (c *Context) JSON(status int, v interface{}) error
- func (c *Context) Param(name string) string
- func (c *Context) QueryParam(name string) string
- func (c *Context) Request() *http.Request
- func (c *Context) Response() http.ResponseWriter
- func (c *Context) SetCookie(cookie *http.Cookie)
- func (c *Context) SetHeader(key, value string)
- func (c *Context) SetValue(key, value interface{})
- func (c *Context) Status(status int)
- func (c *Context) Text(status int, text string) error
- func (c *Context) XML(status int, v interface{}) error
- type ErrorHandler
- type Group
- func (g *Group) DELETE(path string, h Handler, middlewares ...Middleware)
- func (g *Group) GET(path string, h Handler, middlewares ...Middleware)
- func (g *Group) Group(prefix string) *Group
- func (g *Group) HEAD(path string, h Handler, middlewares ...Middleware)
- func (g *Group) OPTIONS(path string, h Handler, middlewares ...Middleware)
- func (g *Group) PATCH(path string, h Handler, middlewares ...Middleware)
- func (g *Group) POST(path string, h Handler, middlewares ...Middleware)
- func (g *Group) PUT(path string, h Handler, middlewares ...Middleware)
- func (g *Group) Use(middlewares ...Middleware)
- type Handler
- type Json
- type Middleware
- type Pulsar
- func (p *Pulsar) DELETE(path string, h Handler, middlewares ...Middleware)
- func (p *Pulsar) GET(path string, h Handler, middlewares ...Middleware)
- func (p *Pulsar) Group(prefix string) *Group
- func (p *Pulsar) HEAD(path string, h Handler, middlewares ...Middleware)
- func (p *Pulsar) OPTIONS(path string, h Handler, middlewares ...Middleware)
- func (p *Pulsar) PATCH(path string, h Handler, middlewares ...Middleware)
- func (p *Pulsar) POST(path string, h Handler, middlewares ...Middleware)
- func (p *Pulsar) PUT(path string, h Handler, middlewares ...Middleware)
- func (p *Pulsar) Start(listenAddr string) error
- func (p *Pulsar) Use(middlewares ...Middleware)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func (*Context) QueryParam ¶
func (*Context) Response ¶ added in v1.0.1
func (c *Context) Response() http.ResponseWriter
type ErrorHandler ¶
type Group ¶
type Group struct {
// contains filtered or unexported fields
}
func (*Group) Use ¶
func (g *Group) Use(middlewares ...Middleware)
type Middleware ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.