traceable

package
v0.0.0-...-3439542 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateHttpTimingTracer

func GenerateHttpTimingTracer(
	traceable Traceable,
	debug debug.DebugLevel,
) *httptrace.ClientTrace

Types

type Traceable

type Traceable interface {
	SetDnsStartTimeInfo(time.Time, httptrace.DNSStartInfo)
	SetDnsDoneTimeInfo(time.Time, httptrace.DNSDoneInfo)
	SetConnectStartTime(time.Time)
	SetConnectDoneTimeError(time.Time, error)
	SetGetConnTime(time.Time)
	SetGotConnTimeInfo(time.Time, httptrace.GotConnInfo)
	SetTLSHandshakeStartTime(time.Time)
	SetTLSHandshakeDoneTimeState(time.Time, tls.ConnectionState)
	SetHttpWroteRequestTimeInfo(time.Time, httptrace.WroteRequestInfo)
	SetHttpResponseReadyTime(time.Time)
}

Jump to

Keyboard shortcuts

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