MCPcopy
hub / github.com/nats-io/nats.go / CustomDialer

Interface CustomDialer

nats.go:300–302  ·  nats.go::CustomDialer

CustomDialer can be used to specify any dialer, not necessarily a *net.Dialer. A CustomDialer may also implement `SkipTLSHandshake() bool` in order to skip the TLS handshake in case not required.

Source from the content-addressed store, hash-verified

298// *net.Dialer. A CustomDialer may also implement `SkipTLSHandshake() bool`
299// in order to skip the TLS handshake in case not required.
300type CustomDialer interface {
301 Dial(network, address string) (net.Conn, error)
302}
303
304type InProcessConnProvider interface {
305 InProcessConn() (net.Conn, error)

Callers 5

createConnMethod · 0.65
DialMethod · 0.65
DialMethod · 0.65
DialMethod · 0.65
DialMethod · 0.65

Implementers 5

skipTLSDialerexample_test.go
customDialertest/conn_test.go
lowWriteBufferDialertest/conn_test.go
testSkipTLSDialertest/ws_test.go
checkPoolUpdatedDialertest/cluster_test.go

Calls

no outgoing calls

Tested by

no test coverage detected