15 lines
219 B
Go
15 lines
219 B
Go
|
package mongo
|
||
|
|
||
|
import (
|
||
|
"app-cloudep-trade-service/internal/config"
|
||
|
"fmt"
|
||
|
)
|
||
|
|
||
|
func MustMongoConnectURL(c config.Config) string {
|
||
|
return fmt.Sprintf("%s://%s:%s",
|
||
|
c.Mongo.Schema,
|
||
|
c.Mongo.Host,
|
||
|
c.Mongo.Port,
|
||
|
)
|
||
|
}
|