MCPcopy
hub / github.com/grpc/grpc-go / Dial

Function Dial

clientconn.go:265–267  ·  view source on GitHub ↗

Dial calls DialContext(context.Background(), target, opts...). Deprecated: use NewClient instead. Will be supported throughout 1.x.

(target string, opts ...DialOption)

Source from the content-addressed store, hash-verified

263//
264// Deprecated: use NewClient instead. Will be supported throughout 1.x.
265func Dial(target string, opts ...DialOption) (*ClientConn, error) {
266 return DialContext(context.Background(), target, opts...)
267}
268
269// DialContext calls NewClient and then exits idle mode. If WithBlock(true) is
270// used, it calls Connect and WaitForStateChange until either the context

Calls 1

DialContextFunction · 0.85