mediocregopher / radix.v2

Redis client for Go
http://godoc.org/github.com/mediocregopher/radix.v2
MIT License
433 stars 92 forks source link

the Redis Cluster client cannot support auth #31

Closed andyli029 closed 8 years ago

andyli029 commented 8 years ago

fix the Redis Cluster client to support auth in the Func of NewWithOpts #32 @mediocregopher

mstoykov commented 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.

mediocregopher commented 8 years ago

@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!