Documentation
¶
Index ¶
- func AsHandlerFunc(a Action) http.HandlerFunc
- func AsProxyHandlerFunc(a ProxyAction) http.HandlerFunc
- type Action
- type ProxyAction
- type Response
- func Accepted() Response
- func BadGateway(err error) Response
- func BadRequest(err error) Response
- func Conflict(err error) Response
- func Created() Response
- func Error(err error, code ...int) Response
- func Forbidden(err error) Response
- func NoContent() Response
- func NotFound(err error) Response
- func Ok() Response
- func PaymentRequired(err error) Response
- func UnAuthorized(err error) Response
- func Unavailable(err error) Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsHandlerFunc ¶
func AsHandlerFunc(a Action) http.HandlerFunc
AsHandlerFunc is a helper wrapper to make implementing actions easier
func AsProxyHandlerFunc ¶
func AsProxyHandlerFunc(a ProxyAction) http.HandlerFunc
AsProxyHandlerFunc returns the response in `_, response`, and proxy the http response in `response, nil`
Types ¶
type ProxyAction ¶
ProxyAction interface
Click to show internal directories.
Click to hide internal directories.