Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrBadRequest = MakeErr(http.StatusBadRequest, 1, "bad request") ErrNotFound = MakeErr(http.StatusNotFound, 2, "not found") ErrForbidden = MakeErr(http.StatusForbidden, 4, "forbidden") ErrConflict = MakeErr(http.StatusConflict, 5, "conflict") ErrInternalServerError = MakeErr(http.StatusInternalServerError, 6, "internal server error") )
Functions ¶
func New ¶
func New(registrar ServiceRegistrar) (err error)
func RouteNotFound ¶
Types ¶
type EndpointsRegistrar ¶
type Err ¶
type OK ¶
type OK struct { Data interface{} `json:"data"` // contains filtered or unexported fields }
type OKSet ¶
type OKSet struct { Data interface{} `json:"data"` Meta meta `json:"meta"` // contains filtered or unexported fields }
type ResponseSenderInterface ¶
type ServiceRegistrar ¶
Click to show internal directories.
Click to hide internal directories.