Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Report ¶
type Report struct { // ConnectStart time when client start connection ConnectStart time.Time // ConnectDone time when connection has been established ConnectDone time.Time // DNSLookupStart begin of DNS lookup DNSLookupStart time.Time // DNSLookupDone end of DNS lookup DNSLookupDone time.Time // TLSHandshakeStart begin of TLS handshake TLSHandshakeStart time.Time // TLSHandshakeDone end of TLS handshake TLSHandshakeDone time.Time // Reused connection from connection pool (keep-alive) Reused bool }
Report for single HTTP Request
func ReportFromResponse ¶
ReportFromResponse return report from response
func (*Report) ConnectionTime ¶
ConnectionTime time for establishing a connection
func (*Report) ConnectionTimeMs ¶
ConnectionTime time for establishing a connection in milliseconds
func (*Report) DNSLookupTime ¶
DNSLookupTime time for DNS lookup
func (*Report) DNSLookupTimeMs ¶
DNSLookupTime time for DNS lookup in milliseconds
func (*Report) TLSHandshakeTime ¶
TLSHandshakeDuration time for TLSHandshake
func (*Report) TLSHandshakeTimeMs ¶
TLSHandshakeTimeMs time for TLSHandshake in milliseconds
Click to show internal directories.
Click to hide internal directories.