MCPcopy Index your code
hub / github.com/apache/devlake / getUserString

Function getUserString

backend/core/runner/db.go:103–110  ·  view source on GitHub ↗
(u *url.URL)

Source from the content-addressed store, hash-verified

101}
102
103func getUserString(u *url.URL) string {
104 userString := u.User.Username()
105 password, ok := u.User.Password()
106 if ok {
107 userString = fmt.Sprintf("%s:%s", userString, password)
108 }
109 return userString
110}
111
112// sanitizeQuery add default value to query and remove ca-cert from query
113func sanitizeQuery(query url.Values) string {

Callers 1

MakeDbConnectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected