Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Options options
Functions ¶
This section is empty.
Types ¶
type CheckResponseAfterUnmarshalFuncs ¶
type CheckResponseAfterUnmarshalFuncs []CheckResponseAfterUnmarshalFunc
func (CheckResponseAfterUnmarshalFuncs) Check ¶
func (fs CheckResponseAfterUnmarshalFuncs) Check(statusCode int, v interface{}) error
type CheckResponseBeforeUnmarshalFuncs ¶
type CheckResponseBeforeUnmarshalFuncs []CheckResponseBeforeUnmarshalFunc
type Codec ¶
type Codec interface {
Marshaller
Unmarshaller
}
type CodecFuncs ¶
type CodecFuncs struct {
MarshalFunc
UnmarshalFunc
}
type Log ¶
type Log struct {
Logger func(format string, v ...interface{})
URL bool
RequestBody bool
RequestBodyLimit int // 0 means no limit
ResponseBody bool
ResponseBodyLimit int // 0 means no limit
}
func (Log) LogRequestBody ¶
func (Log) LogResponseBody ¶
type MarshalFunc ¶
func MarshalFuncOf ¶
func MarshalFuncOf(m Marshaller) MarshalFunc
func (MarshalFunc) Marshal ¶
func (f MarshalFunc) Marshal(v interface{}) ([]byte, error)
type Marshaller ¶
type Request ¶
type Request struct {
// contains filtered or unexported fields
}
zero value is not ready for use, call New
type UnmarshalFunc ¶
func UnmarshalFuncOf ¶
func UnmarshalFuncOf(u Unmarshaller) UnmarshalFunc
func (UnmarshalFunc) Unmarshal ¶
func (f UnmarshalFunc) Unmarshal(data []byte, v interface{}) error
type Unmarshaller ¶
Click to show internal directories.
Click to hide internal directories.