Documentation ¶
Index ¶
- Constants
- func NewTrace(timing *Timing) *httptrace.ClientTrace
- type Header
- type Response
- type ResponseTiming
- type ResponseTimings
- type Timing
- func (t Timing) DnsLookupDuration() time.Duration
- func (t Timing) ResponseTransferDuration() time.Duration
- func (t Timing) ServerDuration() time.Duration
- func (t Timing) StartTime() time.Time
- func (t Timing) String() string
- func (t Timing) TcpConnectDuration() (result time.Duration)
- func (t Timing) TlsHandshakeDuration() time.Duration
- func (t Timing) TotalDuration() time.Duration
Constants ¶
View Source
const TimingResolution = 1 * time.Millisecond
Variables ¶
This section is empty.
Functions ¶
func NewTrace ¶
func NewTrace(timing *Timing) *httptrace.ClientTrace
Types ¶
type ResponseTiming ¶
type ResponseTimings ¶
type ResponseTimings []ResponseTiming
func (ResponseTimings) GetLongestDuration ¶
func (r ResponseTimings) GetLongestDuration() (duration time.Duration)
func (ResponseTimings) Responses ¶
func (r ResponseTimings) Responses() (responses []*Response)
func (ResponseTimings) Timings ¶
func (r ResponseTimings) Timings() (timings []*Timing)
type Timing ¶
type Timing struct { DnsStart time.Time DnsDone time.Time ConnectStart time.Time ConnectDone time.Time TlsStart time.Time TlsDone time.Time GotConn time.Time FirstByte time.Time Done time.Time }
func (Timing) DnsLookupDuration ¶
func (Timing) ResponseTransferDuration ¶
func (Timing) ServerDuration ¶
func (Timing) TcpConnectDuration ¶
func (Timing) TlsHandshakeDuration ¶
func (Timing) TotalDuration ¶
Click to show internal directories.
Click to hide internal directories.