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

Function WithReturnConnectionError

dialoptions.go:386–391  ·  view source on GitHub ↗

WithReturnConnectionError returns a DialOption which makes the client connection return a string containing both the last connection error that occurred and the context.DeadlineExceeded error. Implies WithBlock() Use of this feature is not recommended. For more information, please see: https://git

()

Source from the content-addressed store, hash-verified

384// Deprecated: this DialOption is not supported by NewClient.
385// Will be supported throughout 1.x.
386func WithReturnConnectionError() DialOption {
387 return newFuncDialOption(func(o *dialOptions) {
388 o.block = true
389 o.returnLastError = true
390 })
391}
392
393// WithInsecure returns a DialOption which disables transport security for this
394// ClientConn. Under the hood, it uses insecure.NewCredentials().

Calls 1

newFuncDialOptionFunction · 0.85