diff options
Diffstat (limited to 'config.go')
| -rw-r--r-- | config.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -24,6 +24,7 @@ type Config struct { BasicAuthPassword string Debug bool // sets log level to debug + OnlyUpdateStories bool } // Parses the configuration and sets the configuration struct. @@ -35,6 +36,7 @@ func (c *Config) parseConfig(configFile string) { viper.SetDefault("DB_Port", "3306") viper.SetDefault("Debug", false) + viper.SetDefault("OnlyUpdateStories", false) viper.SetDefault("Delay", 0) // needs some refactoring to truly respect robots.txt @@ -101,4 +103,5 @@ func (c *Config) setsConfig() { c.BasicAuthPassword = viper.GetString("BasicAuthPassword") c.Debug = viper.GetBool("Debug") + c.OnlyUpdateStories = viper.GetBool("OnlyUpdateStories") } |
