Closed andyli029 closed 8 years ago
Hi. The DialFunc idea is that you create your own and then use that. In it you can do everything you would like to do before the making the connection(some complicated knock mechanism to open a port ...) and before that connection can be used(sending AUTH and/or SELECT ...).
The cluster package docs don't have example, but there is one in the pool.
@MStoykov is correct, the purpose of the DialFunc is to allow for things like AUTH within it. The pool's example works just as well for cluster. I'm going to close your PR and this issue, but thanks for contributing and please don't be discouraged in the future!
fix the Redis Cluster client to support auth in the Func of NewWithOpts #32 @mediocregopher