app-cloudep-trade-service/internal/lib/mongo/init_mongodb.go

15 lines
219 B
Go
Raw Normal View History

2024-10-25 16:42:58 +00:00
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,
)
}