diff options
| author | horus | 2018-02-14 22:52:22 +0100 |
|---|---|---|
| committer | horus | 2018-02-14 22:52:22 +0100 |
| commit | 6140c5b7234b97d4a7b4bb26c87d316b3734f777 (patch) | |
| tree | 57e4a2f597e114816149184871517dd419065a83 /crawler/config.go | |
| parent | 2692360f15a79be87d656f94c997e2ab34221ced (diff) | |
| download | alkobote-6140c5b7234b97d4a7b4bb26c87d316b3734f777.tar.gz | |
Add shop short url. (crawler)
Diffstat (limited to 'crawler/config.go')
| -rw-r--r-- | crawler/config.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crawler/config.go b/crawler/config.go index 552d57a..b0964f8 100644 --- a/crawler/config.go +++ b/crawler/config.go @@ -23,12 +23,12 @@ type Config struct { // Parses the configuration and sets the configuration struct. func (c *Config) parseConfig(configFile string) { - viper.SetDefault("DBDriver", "mysql") - viper.SetDefault("DBDBName", "alkobote") - viper.SetDefault("DBHost", "localhost") - viper.SetDefault("DBPort", "3306") + viper.SetDefault("DB_Driver", "mysql") + viper.SetDefault("DB_DBName", "alkobote") + viper.SetDefault("DB_Host", "localhost") + viper.SetDefault("DB_Port", "3306") - viper.SetDefault("DBPath", "./alkobote.db") + viper.SetDefault("DB_Path", "./alkobote.db") viper.SetDefault("Debug", false) |
