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
()
| 384 | // Deprecated: this DialOption is not supported by NewClient. |
| 385 | // Will be supported throughout 1.x. |
| 386 | func 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(). |