Documentation ¶
Overview ¶
Package api implements a framework for creating a JSON API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BadRequest = NewError(400, "Bad request.")
View Source
var InternalServerError = NewError(500, "Internal server error.")
Functions ¶
func Call ¶
func Call(w http.ResponseWriter, r *http.Request, p httprouter.Params, handle Handle) error
func Wrap ¶
func Wrap(handle Handle) httprouter.Handle
Types ¶
Click to show internal directories.
Click to hide internal directories.