Documentation ¶
Index ¶
- type HTTPTrace
- type NopTracer
- func (t NopTracer) AddComment(step, message string)
- func (t NopTracer) GotError(message string)
- func (t NopTracer) GotResponse(statusCode int, status string, header http.Header, body io.ReadCloser) io.Reader
- func (t NopTracer) SendRequest(method, url string)
- func (t NopTracer) SetPhase(message string)
- type TraceClient
- func (tc TraceClient) Do(req *http.Request) (*http.Response, error)
- func (tc TraceClient) Get(url string) (*http.Response, error)
- func (tc TraceClient) Head(url string) (*http.Response, error)
- func (tc TraceClient) Post(url, contentType string, body io.Reader) (*http.Response, error)
- func (tc TraceClient) SetTimeout(timeout time.Duration)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPTrace ¶
type HTTPTrace interface { SetPhase(message string) SendRequest(method, url string) // return a reader of the body content if the body is consumed; otherwise, return nil GotResponse(statusCode int, status string, header http.Header, body io.ReadCloser) io.Reader GotError(message string) AddComment(step, comment string) }
type NopTracer ¶
type NopTracer struct { }
func (NopTracer) AddComment ¶
func (NopTracer) GotResponse ¶
func (NopTracer) SendRequest ¶
type TraceClient ¶
func (TraceClient) SetTimeout ¶
func (tc TraceClient) SetTimeout(timeout time.Duration)
Click to show internal directories.
Click to hide internal directories.