2023-03-11 10:17:30 +00:00
|
|
|
package config
|
|
|
|
|
|
|
|
type Config struct {
|
2023-03-11 11:30:12 +00:00
|
|
|
MongoURL string
|
|
|
|
DBName string
|
|
|
|
ChatsCollectionName string
|
|
|
|
WorkoutsCollectionName string
|
2023-03-12 06:53:50 +00:00
|
|
|
CaloriesCollectionName string
|
2023-03-11 10:17:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func NewConfig() *Config {
|
|
|
|
return &Config{
|
2023-03-11 11:30:12 +00:00
|
|
|
MongoURL: "mongodb://mongo:o6bbyog3DHG0GYdu@158.160.11.219:27027",
|
|
|
|
DBName: "valera",
|
2023-03-11 12:38:01 +00:00
|
|
|
ChatsCollectionName: "chats",
|
2023-03-11 11:30:12 +00:00
|
|
|
WorkoutsCollectionName: "workouts",
|
2023-03-12 06:53:50 +00:00
|
|
|
CaloriesCollectionName: "calories",
|
2023-03-11 10:17:30 +00:00
|
|
|
}
|
|
|
|
}
|