WithTLSConfig sets the TLS config to use in cluster connections.
(tlsConfig *tls.Config)
| 110 | |
| 111 | // WithTLSConfig sets the TLS config to use in cluster connections. |
| 112 | func WithTLSConfig(tlsConfig *tls.Config) Option { |
| 113 | return optionFunc(func(c *cluster) { |
| 114 | c.tlsConfig = tlsConfig |
| 115 | }) |
| 116 | } |
| 117 | |
| 118 | // CustomNew allows you to replace the clustering implementation. New will call CustomNew if not nil. |
| 119 | var CustomNew func(ctx context.Context, config *Config, options ...Option) (Cluster, error) |
no test coverage detected