Documentation ¶
Index ¶
- type Context
- func (c *Context) AddData(key string, value interface{})
- func (c *Context) AddParam(name, value string)
- func (c *Context) Data(key string) (interface{}, bool)
- func (c *Context) Error() error
- func (c *Context) JSON(status int, data interface{}) error
- func (c *Context) Param(name string) string
- func (c *Context) RecoverData() interface{}
- func (c *Context) Render(status int, rr render.Render) error
- func (c *Context) RequestID() string
- func (c *Context) SetError(err error)
- func (c *Context) SetRecoverData(data interface{})
- func (c *Context) SetRequestID(rid string)
- type Pool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct { Request *http.Request Response http.ResponseWriter Status int // contains filtered or unexported fields }
func (*Context) RecoverData ¶
func (c *Context) RecoverData() interface{}
func (*Context) SetRecoverData ¶
func (c *Context) SetRecoverData(data interface{})
func (*Context) SetRequestID ¶
Click to show internal directories.
Click to hide internal directories.