Documentation
¶
Index ¶
- Variables
- type CheckResponseAfterUnmarshalFunc
- type CheckResponseAfterUnmarshalFuncs
- type CheckResponseBeforeUnmarshalFunc
- type CheckResponseBeforeUnmarshalFuncs
- type Codec
- type CodecFuncs
- type Log
- type MarshalFunc
- type Marshaller
- type Option
- type Request
- type RequestHookFunc
- type RequestHookFuncs
- type ResponseHookFunc
- type ResponseHookFuncs
- type UnmarshalFunc
- type Unmarshaller
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{})
CtxLogger func(ctx context.Context, format string, v ...interface{}) // if this has been set, Logger make no sense
URL bool
RequestBody bool
RequestBodyLimit int // 0 means no limit
ResponseBody bool
ResponseBodyLimit int // 0 means no limit
}
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 RequestHookFunc ¶ added in v0.1.9
type RequestHookFuncs ¶ added in v0.1.9
type RequestHookFuncs []RequestHookFunc
type ResponseHookFunc ¶ added in v0.1.9
type ResponseHookFuncs ¶ added in v0.1.9
type ResponseHookFuncs []ResponseHookFunc
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.