Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Capture ¶
type Capture interface {
WithResponse(rb nw_client.RequestBuilder, req *http.Request, res es_response.Response, resErr error, latency int64)
}
func NewCapture ¶
func NewCapture(ctx api_context.Context) Capture
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Call ¶
func (z *Client) Call(ctx api_context.Context, req nw_client.RequestBuilder) (res es_response.Response)
type Record ¶
type Record struct {
Time string `json:"time"`
Req *nw_request.Req `json:"req"`
Res *Res `json:"res"`
Latency int64 `json:"latency"`
}
type Res ¶
type Res struct {
ResponseCode int `json:"code"`
ResponseProto string `json:"proto,omitempty"`
ResponseBody string `json:"body,omitempty"`
ResponseHeaders map[string]string `json:"headers"`
ResponseJson json.RawMessage `json:"json,omitempty"`
ResponseError string `json:"error,omitempty"`
ContentLength int64 `json:"content_length"`
}
Click to show internal directories.
Click to hide internal directories.