This commit is contained in:
+3
-3
@@ -8,10 +8,10 @@ type Config struct {
|
||||
CaloriesCollectionName string
|
||||
}
|
||||
|
||||
func NewConfig() *Config {
|
||||
func NewConfig(mongoURl string, dbName string) *Config {
|
||||
return &Config{
|
||||
MongoURL: "mongodb://mongo:o6bbyog3DHG0GYdu@158.160.11.219:27027",
|
||||
DBName: "valera",
|
||||
MongoURL: mongoURl,
|
||||
DBName: dbName,
|
||||
ChatsCollectionName: "chats",
|
||||
WorkoutsCollectionName: "workouts",
|
||||
CaloriesCollectionName: "calories",
|
||||
|
||||
Reference in New Issue
Block a user