Documentation ¶
Overview ¶
Package httpstat traces HTTP latency infomation (DNSLookup, TCP Connection and so on) on any golang HTTP request. It uses `httptrace` package. Inspired by https://github.com/tcnksm/go-httpstat and https://github.com/davecheney/httpstat
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Stat ¶
type Stat struct { // The following are duration for each phase // DNSLookup => TCPConnection => TLSHandshake => ServerProcessing => ContentTransfer DNSLookup time.Duration TCPConnection time.Duration TLSHandshake time.Duration ServerProcessing time.Duration ContentTransfer time.Duration // from the first response byte to tansfer done. // The followings are timeline of request NameLookup time.Duration // = DNSLookup Connect time.Duration // = DNSLookup + TCPConnection Pretransfer time.Duration // = DNSLookup + TCPConnection + TLSHandshake StartTransfer time.Duration // = DNSLookup + TCPConnection + TLSHandshake + ServerProcessing Total time.Duration // = DNSLookup + TCPConnection + TLSHandshake + ServerProcessing + ContentTransfer // contains filtered or unexported fields }
Stat stores httpstat info.
Click to show internal directories.
Click to hide internal directories.