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-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",
|
|
|
|
ChatsCollectionName: "users",
|
|
|
|
WorkoutsCollectionName: "workouts",
|
2023-03-11 10:17:30 +00:00
|
|
|
}
|
|
|
|
}
|