MCPcopy
hub / github.com/golang/net / Dialer

Interface Dialer

proxy/proxy.go:19–22  ·  view source on GitHub ↗

A Dialer is a means to establish a connection. Custom dialers should also implement ContextDialer.

Source from the content-addressed store, hash-verified

17// A Dialer is a means to establish a connection.
18// Custom dialers should also implement ContextDialer.
19type Dialer interface {
20 // Dial connects to the given address via the proxy.
21 Dial(network, addr string) (c net.Conn, err error)
22}
23
24// Auth contains authentication parameters that specific Dialers may require.
25type Auth struct {

Callers 23

connectorFunction · 0.65
TestConnInitiatorPathMTUFunction · 0.65
TestBPFFunction · 0.65
newLocalConnPairFunction · 0.65
dialContextFunction · 0.65
DialMethod · 0.65
DialMethod · 0.65
DialContextMethod · 0.95
TestDialFunction · 0.95
dialWithDialerFunction · 0.95

Implementers 5

Endpointquic/endpoint.go
recordingProxyproxy/per_host_test.go
PerHostproxy/per_host.go
directproxy/direct.go
Dialerinternal/socks/socks.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…