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

Function NewBasicCredentials

auth/auth.go:74–79  ·  view source on GitHub ↗

NewBasicCredentials creates a new Credentials object from the given username and password.

(username, password string)

Source from the content-addressed store, hash-verified

72
73// NewBasicCredentials creates a new Credentials object from the given username and password.
74func NewBasicCredentials(username, password string) Credentials {
75 return &basicAuth{
76 username: username,
77 password: password,
78 }
79}

Callers 5

SubscribeMethod · 0.92
redis_test.goFile · 0.92
TestBasicCredentialsFunction · 0.85

Calls

no outgoing calls

Tested by 4

SubscribeMethod · 0.74
TestBasicCredentialsFunction · 0.68