tracer

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TraceGotConn int = iota
	TraceDNSStart
	TraceDNSDone
	TraceConnectStart
	TraceConnectDone
	TraceGetConn
	TraceGotFirstResponseByte
	TraceTLSHandshakeStart
	TraceTLSHandshakeDone
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Tracer

type Tracer struct {
	Enable      bool
	StartTime   time.Time
	EndTime     time.Time
	ClientTrace *httptrace.ClientTrace
	Output      struct {
		Prefix string
		// contains filtered or unexported fields
	}
	// contains filtered or unexported fields
}

func (*Tracer) Init

func (t *Tracer) Init() *Tracer

func (*Tracer) ToString

func (t *Tracer) ToString() string

Jump to

Keyboard shortcuts

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