diff options
Diffstat (limited to 'config.go')
| -rw-r--r-- | config.go | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -20,6 +20,9 @@ type Config struct { Delay int IgnoreRobotsTXT bool + BasicAuthUsername string + BasicAuthPassword string + Debug bool // sets log level to debug } @@ -98,5 +101,8 @@ func (c *Config) setsConfig() { c.Delay = viper.GetInt("Delay") c.IgnoreRobotsTXT = viper.GetBool("IgnoreRobotsTXT") + c.BasicAuthUsername = viper.GetString("BasicAuthUsername") + c.BasicAuthPassword = viper.GetString("BasicAuthPassword") + c.Debug = viper.GetBool("Debug") } |
