Files
valera/internal/config/config.go
T
VLADIMIR 64345c9350
continuous-integration/drone/push Build is passing
add struct
2023-04-06 17:36:57 +07:00

20 lines
455 B
Go

package config
type Config struct {
MongoURL string
DBName string
ChatsCollectionName string
WorkoutsCollectionName string
CaloriesCollectionName string
}
func NewConfig(mongoURl string, dbName string) *Config {
return &Config{
MongoURL: mongoURl,
DBName: dbName,
ChatsCollectionName: "chats",
WorkoutsCollectionName: "workouts",
CaloriesCollectionName: "calories",
}
}