Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BindingFunc ¶
type Log ¶
type QueryBinding ¶
type QueryBinding struct {
Validate ValidateFunc
}
type Request ¶
type Request struct {
// contains filtered or unexported fields
}
func (*Request) With ¶
func (r *Request) With(opts ...RequestOpt) *Request
type RequestOpt ¶
type RequestOpt interface {
On(r *Request)
// contains filtered or unexported methods
}
type ResponseCheck ¶
func (ResponseCheck) On ¶
func (opt ResponseCheck) On(r *Request)
type ResponseCheckAfterUnmarshal ¶
type ResponseCheckAfterUnmarshal func(response interface{}) error
func (ResponseCheckAfterUnmarshal) On ¶
func (opt ResponseCheckAfterUnmarshal) On(r *Request)
type StatusCodeCheck ¶
type StatusCodeCheck struct {
// only one of Equal and CheckFunc will take effect
// if set many StatusCodeCheck options, all of them must be passed
Equal int
CheckFunc func(statusCode int) error
// contains filtered or unexported fields
}
func (StatusCodeCheck) On ¶
func (opt StatusCodeCheck) On(r *Request)
type ValidateFunc ¶
type ValidateFunc func(v interface{}) error
Click to show internal directories.
Click to hide internal directories.