Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Response ¶
type Response struct { Name string `json:"name,omitempty"` URI string `json:"uri,omitempty"` // Called URI by downstream Type string `json:"type,omitempty"` IPAddresses []string `json:"ip_addresses,omitempty"` Path []string `json:"path,omitempty"` // Path received by upstream StartTime string `json:"start_time,omitempty"` EndTime string `json:"end_time,omitempty"` Duration string `json:"duration,omitempty"` Headers map[string]string `json:"headers,omitempty"` Cookies map[string]string `json:"cookies,omitempty"` Body json.RawMessage `json:"body,omitempty"` UpstreamCalls map[string]Response `json:"upstream_calls,omitempty"` Code int `json:"code"` Error string `json:"error,omitempty"` }
Response defines the type which is returned from the service
func (*Response) AppendUpstream ¶
AppendUpstream appends an upstream response to this object
func (*Response) AppendUpstreams ¶
AppendUpstreams appends multiple upstream responses to this object
Click to show internal directories.
Click to hide internal directories.