Versions in this module Expand all Collapse all v1 v1.1.1 Apr 24, 2020 v1.1.0 Apr 24, 2020 Changes in this version + var ThtStrings = [...]string + func GetTraceHooks(t *Trace) *httptrace.ClientTrace + type Hook struct + Duration time.Duration + Err error + LocalDrift time.Duration + Time time.Time + Wait bool + func (th *Hook) LogError(err error) + func (th *Hook) LogTime(now time.Time, latest time.Time) + func (th *Hook) NeedToWait() bool + func (th *Hook) SetLocalDrift(localDrift time.Duration) + func (th *Hook) SetWait() + func (th *Hook) UnsetWait() + type SyncConfig struct + Cond *sync.Cond + ReadyWg *sync.WaitGroup + WaitOnHook TraceHookType + type Trace struct + Done time.Time + Error bool + Hooks map[TraceHookType]*Hook + Id uint64 + Latest time.Time + LocalAddr string + Start time.Time + Total time.Duration + TotalDrift time.Duration + UniqueId string + func New(id uint64, syncConfig *SyncConfig) *Trace + func (t *Trace) GetDrift() time.Duration + func (t *Trace) IncreaseDrift(start time.Time) + func (t *Trace) LogError(hook TraceHookType, err error) + func (t *Trace) LogTime(hook TraceHookType) + func (t *Trace) SetDone() + func (t *Trace) SetStart(now time.Time) + func (t *Trace) UpdateLatest(latest time.Time) + func (t *Trace) WaitForSignal(hook TraceHookType) + type TraceHookType int + const ConnectDone + const ConnectStart + const DNSDone + const DNSStart + const GetConn + const Got100Continue + const GotConn + const GotFirstResponseByte + const HooksCount + const TLSHandshakeDone + const TLSHandshakeStart + const Wait100Continue + const WroteHeaders + const WroteRequest + func Unstring(name string) (TraceHookType, error) + func (tht *TraceHookType) UnmarshalText(text []byte) (err error) + func (tht TraceHookType) MarshalText() (text []byte, err error) + func (tht TraceHookType) String() string