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(status int, err error) error
- func (c *Context) NewError(status int, message string, kv ...interface{}) error
- func (c *Context) Param(name string) string
- func (c *Context) Render(status int, data interface{}) error
- func (c *Context) RenderData(data []byte) error
- func (c *Context) RenderJSON(status int, data interface{}) error
- func (c *Context) RenderStatus(status int)
- func (c *Context) RenderStatusInternalServerError()
- func (c *Context) RenderStatusMethodNotAllowed()
- func (c *Context) RenderStatusNoContent()
- func (c *Context) RenderStatusNotFound()
- func (c *Context) RenderStatusOK()
- func (c *Context) RenderStatusUnauthorized()
- func (c *Context) RequestID() string
- func (c *Context) SetHeader(key, value string)
- func (c *Context) SetHeaderContentType(ct string)
- func (c *Context) SetHeaderWWWAuthenticate()
- func (c *Context) SetRequestID(rID string)
- type Error
- type MSI
- type Pool
- type RendererType
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) RenderData ¶
func (*Context) RenderJSON ¶
func (*Context) RenderStatus ¶
func (*Context) RenderStatusInternalServerError ¶
func (c *Context) RenderStatusInternalServerError()
func (*Context) RenderStatusMethodNotAllowed ¶
func (c *Context) RenderStatusMethodNotAllowed()
func (*Context) RenderStatusNoContent ¶
func (c *Context) RenderStatusNoContent()
func (*Context) RenderStatusNotFound ¶
func (c *Context) RenderStatusNotFound()
func (*Context) RenderStatusOK ¶
func (c *Context) RenderStatusOK()
func (*Context) RenderStatusUnauthorized ¶
func (c *Context) RenderStatusUnauthorized()
func (*Context) SetHeaderContentType ¶
func (*Context) SetHeaderWWWAuthenticate ¶
func (c *Context) SetHeaderWWWAuthenticate()
func (*Context) SetRequestID ¶
Click to show internal directories.
Click to hide internal directories.