Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authenticating with multihostpool #105

Open
linopu opened this issue Apr 20, 2021 · 0 comments
Open

Authenticating with multihostpool #105

linopu opened this issue Apr 20, 2021 · 0 comments
Assignees

Comments

@linopu
Copy link

linopu commented Apr 20, 2021

Currently while working with MultiHostPool connection is being created when calling MultiHostPool.Get method. While creating NewSingleHostPool you can dial by yourself and create a connection with given password doing something like that
p := &redigo.Pool{ Dial: func() (redigo.Conn, error) { return redigo.DialURL(fmt.Sprintf("redis://%s@%s:%d", password, host, port)) }, }
but with MultiHostPool it seems you dont have the same option

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants