httpstat

package
v0.0.0-...-0180ba6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stat

type Stat struct {
	DNSLookup     time.Duration
	TCPConnection time.Duration
	TLSHandshake  time.Duration
	// Waiting to get a network connection.
	WaitingConnection time.Duration
	Sending           time.Duration
	// Waiting for server first byte.
	WaitingServer time.Duration
	Receiving     time.Duration
}

type Tracer

type Tracer struct {
	Stat
	// contains filtered or unexported fields
}

func (*Tracer) ClientTrace

func (t *Tracer) ClientTrace() *httptrace.ClientTrace

func (*Tracer) ConnectDone

func (t *Tracer) ConnectDone(_, _ string, _ error)

func (*Tracer) ConnectStart

func (t *Tracer) ConnectStart(_, _ string)

func (*Tracer) DNSDone

func (t *Tracer) DNSDone(_ httptrace.DNSDoneInfo)

func (*Tracer) DNSStart

func (t *Tracer) DNSStart(_ httptrace.DNSStartInfo)

func (*Tracer) Done

func (t *Tracer) Done(now time.Time)

func (*Tracer) GetConn

func (t *Tracer) GetConn(_ string)

func (*Tracer) GotConn

func (t *Tracer) GotConn(_ httptrace.GotConnInfo)

func (*Tracer) GotFirstResponseByte

func (t *Tracer) GotFirstResponseByte()

func (*Tracer) TLSHandshakeDone

func (t *Tracer) TLSHandshakeDone(_ tls.ConnectionState, _ error)

func (*Tracer) TLSHandshakeStart

func (t *Tracer) TLSHandshakeStart()

func (*Tracer) WroteRequest

func (t *Tracer) WroteRequest(_ httptrace.WroteRequestInfo)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL