18 lines
405 B
Go
18 lines
405 B
Go
package config
|
|
|
|
type Config struct {
|
|
MongoURL string
|
|
DBName string
|
|
ChatsCollectionName string
|
|
WorkoutsCollectionName string
|
|
}
|
|
|
|
func NewConfig() *Config {
|
|
return &Config{
|
|
MongoURL: "mongodb://mongo:o6bbyog3DHG0GYdu@158.160.11.219:27027",
|
|
DBName: "valera",
|
|
ChatsCollectionName: "users",
|
|
WorkoutsCollectionName: "workouts",
|
|
}
|
|
}
|