nettrace

Structs

LookupIPAltResolverKey struct #

LookupIPAltResolverKey is a context.Context Value key used by tests to specify an alternate resolver func. It is not exposed to outsider users. (But see issue 12503) The value should be the same type as lookupIP: func lookupIP(ctx context.Context, host string) ([]IPAddr, error)

type LookupIPAltResolverKey struct {

}

Trace struct #

Trace contains a set of hooks for tracing events within the net package. Any specific hook may be nil.

type Trace struct {
DNSStart func(name string)
DNSDone func(netIPs []any, coalesced bool, err error)
ConnectStart func(network string, addr string)
ConnectDone func(network string, addr string, err error)
}

TraceKey struct #

TraceKey is a context.Context Value key. Its associated value should be a *Trace struct.

type TraceKey struct {

}

Generated with Arrow