Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WrapRequest ¶
func WrapRequest(obj interface{}) http.HandlerFunc
Types ¶
type BodyDecoder ¶
type BodyDecoder interface {
DecodeBody(body io.ReadCloser, target interface{}, obj interface{}) error
}
BodyDecoder is required for structures with a `Body` field
type ErrorHandlerInterface ¶
type ErrorHandlerInterface interface {
HandleError(context.Context, http.ResponseWriter, error)
}
type HandlerInterface ¶
type HandlerInterface interface {
Handle(context.Context, http.ResponseWriter) error
}
type ResponseEncoder ¶
type ResponseEncoder interface {
EncodeResponse(ctx context.Context, out http.ResponseWriter, obj interface{})
}
ResponseEncoder is required for structures with a `Response` field
Click to show internal directories.
Click to hide internal directories.