MCPcopy Create free account
hub / github.com/Cyinx/einx / String

Method String

db/mongodb/mongodb_info.go:32–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30}
31
32func (this *MongoDBInfo) String() string {
33 url := fmt.Sprintf("mongodb://%s:%s@%s:%d/%s",
34 this.DbUser, this.DbPass, this.DbHost, this.DbPort, this.DbName)
35 if this.DbUser == "" || this.DbPass == "" {
36 url = fmt.Sprintf("mongodb://%s:%d/%s", this.DbHost, this.DbPort, this.DbName)
37 }
38 return url
39}

Callers 2

StartMethod · 0.45
CloseMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected