Documentation
¶
Index ¶
- type Response
- func (r Response) BadRequest(reason string)
- func (r Response) Forbidden(reason string)
- func (r Response) InternalServerError(reason string)
- func (r Response) JSON(obj interface{})
- func (r Response) Redirect(req *http.Request, url string)
- func (r Response) TooManyRequests(reason string)
- func (r Response) Unauthorized(reason string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Response ¶
type Response struct {
// contains filtered or unexported fields
}
func New ¶
func New(w http.ResponseWriter) Response
func (Response) BadRequest ¶
func (Response) InternalServerError ¶
func (Response) TooManyRequests ¶
func (Response) Unauthorized ¶
Click to show internal directories.
Click to hide internal directories.