MCPcopy
hub / github.com/redis/go-redis / NewDialer

Method NewDialer

options.go:441–443  ·  view source on GitHub ↗

NewDialer returns a function that will be used as the default dialer when none is specified in Options.Dialer.

()

Source from the content-addressed store, hash-verified

439// NewDialer returns a function that will be used as the default dialer
440// when none is specified in Options.Dialer.
441func (opt *Options) NewDialer() func(context.Context, string, string) (net.Conn, error) {
442 return NewDialer(opt)
443}
444
445// NewDialer returns a function that will be used as the default dialer
446// when none is specified in Options.Dialer.

Callers

nothing calls this directly

Calls 1

NewDialerFunction · 0.85

Tested by

no test coverage detected