Dial calls DialContext(context.Background(), target, opts...). Deprecated: use NewClient instead. Will be supported throughout 1.x.
(target string, opts ...DialOption)
| 263 | // |
| 264 | // Deprecated: use NewClient instead. Will be supported throughout 1.x. |
| 265 | func 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 |