Documentation
¶
Index ¶
- type Trace
- func (t *Trace) ConnectDone(network, addr string, err error)
- func (t *Trace) ConnectStart(network, addr string)
- func (t *Trace) DNSDone(info httptrace.DNSDoneInfo)
- func (t *Trace) DNSStart(info httptrace.DNSStartInfo)
- func (t *Trace) GotConn(info httptrace.GotConnInfo)
- func (t *Trace) GotFirstResponseByte()
- func (t *Trace) RoundTrip(req *http.Request) (*http.Response, error)
- func (t *Trace) Run() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Trace ¶
type Trace struct { Host string `json:"host"` DNSLookupTime time.Duration `json:"dnsLookupTime"` Response string `json:"response"` ResponseTime time.Duration `json:"responseTime"` RoundTripTime time.Duration `json:"roundTripTime,omitempty"` // contains filtered or unexported fields }
Trace is a ping trace and all the info associated
func FastestTrace ¶
FastestTrace returns the fastest of a list of traces Error returned on empty list
func (*Trace) ConnectDone ¶
ConnectDone is the end
func (*Trace) ConnectStart ¶
ConnectStart is the beginning
func (*Trace) DNSDone ¶
func (t *Trace) DNSDone(info httptrace.DNSDoneInfo)
DNSDone is the end of DNS lookup
func (*Trace) DNSStart ¶
func (t *Trace) DNSStart(info httptrace.DNSStartInfo)
DNSStart is the start of DNS
func (*Trace) GotConn ¶
func (t *Trace) GotConn(info httptrace.GotConnInfo)
GotConn prints whether the connection has been used previously for the current request.
func (*Trace) GotFirstResponseByte ¶
func (t *Trace) GotFirstResponseByte()
GotFirstResponseByte is the first response byte
Click to show internal directories.
Click to hide internal directories.