WithConn bypasses the standard mechanism for connecting to the "self" peer.
(conn *grpc.ClientConn)
| 85 | |
| 86 | // WithConn bypasses the standard mechanism for connecting to the "self" peer. |
| 87 | func WithConn(conn *grpc.ClientConn) Option { |
| 88 | return optionFunc(func(c *cluster) { |
| 89 | c.self.conn = conn |
| 90 | }) |
| 91 | } |
| 92 | |
| 93 | // WithDialOptions sets the default dial options for connections to cluster peers. |
| 94 | func WithDialOptions(f func(ctx context.Context) []grpc.DialOption) Option { |
no test coverage detected