Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrValidation = errors.New("validation")
Functions ¶
func NewJsonRPC ¶
Types ¶
type DelayDuration ¶
func (DelayDuration) MarshalJSON ¶
func (d DelayDuration) MarshalJSON() ([]byte, error)
func (*DelayDuration) UnmarshalJSON ¶
func (d *DelayDuration) UnmarshalJSON(data []byte) error
type Headers ¶
func (*Headers) ToHttpHeaders ¶
type Requests ¶
type Requests struct {
// contains filtered or unexported fields
}
func NewRequests ¶
type Response ¶
type Response struct { Delay DelayDuration `json:"delay"` Status int `json:"status"` Headers Headers `json:"headers"` Body string `json:"body"` }
type Responses ¶
type Responses struct {
// contains filtered or unexported fields
}
func NewResponses ¶
Click to show internal directories.
Click to hide internal directories.