MCPcopy
hub / github.com/redis/go-redis / getUserPassword

Function getUserPassword

options.go:717–726  ·  view source on GitHub ↗
(u *url.URL)

Source from the content-addressed store, hash-verified

715}
716
717func getUserPassword(u *url.URL) (string, string) {
718 var user, password string
719 if u.User != nil {
720 user = u.User.Username()
721 if p, ok := u.User.Password(); ok {
722 password = p
723 }
724 }
725 return user, password
726}
727
728func newConnPool(
729 opt *Options,

Callers 4

setupTCPConnFunction · 0.85
setupUnixConnFunction · 0.85
setupClusterConnFunction · 0.85
setupFailoverConnFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected