Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HandlerContext ¶
HandlerContext holds SessionHandlerFunc required attributes for a handler function
func (*HandlerContext) ReadJSON ¶
func (c *HandlerContext) ReadJSON(target interface{}) error
ReadJSON reads the request body as json into the given target and returns an error with what went wrong it might fail if the target isn't a pointer, or if the body isn't a proper JSON
func (*HandlerContext) WriteJSON ¶
func (c *HandlerContext) WriteJSON(src interface{}, failStatus int) error
WriteJSON writes the given object into the http response
Click to show internal directories.
Click to hide internal directories.