Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RequestDecoder ¶
func (*RequestDecoder) Bind ¶
func (d *RequestDecoder) Bind(v interface{}) error
func (*RequestDecoder) BindBody ¶
func (d *RequestDecoder) BindBody(v interface{}) error
func (*RequestDecoder) BindHeader ¶
func (d *RequestDecoder) BindHeader()
func (*RequestDecoder) BindParams ¶
func (d *RequestDecoder) BindParams(v interface{}) error
func (*RequestDecoder) BindQuery ¶
func (d *RequestDecoder) BindQuery(v interface{}) error
type RequestEncoder ¶
type RequestEncoder struct { Opts *option.BinderOptions Request *http.Request }
func NewRequestEncoder ¶
func NewRequestEncoder(r *http.Request, opts ...option.BinderOption) *RequestEncoder
func (*RequestEncoder) Bind ¶
func (e *RequestEncoder) Bind(v interface{}) error
func (*RequestEncoder) BindBody ¶
func (e *RequestEncoder) BindBody(v interface{}) error
func (*RequestEncoder) BindHeader ¶
func (e *RequestEncoder) BindHeader()
func (*RequestEncoder) BindParams ¶
func (d *RequestEncoder) BindParams(v interface{}) error
func (*RequestEncoder) BindQuery ¶
func (d *RequestEncoder) BindQuery(v interface{}) error
type ResponseDecoder ¶
func (*ResponseDecoder) BindBody ¶
func (d *ResponseDecoder) BindBody(v interface{}) error
type ResponseEncoder ¶
type ResponseEncoder struct {
ResponseWriter http.ResponseWriter
}
func (*ResponseEncoder) BindBody ¶
func (e *ResponseEncoder) BindBody(v interface{}) error
Click to show internal directories.
Click to hide internal directories.