diff options
| author | horus | 2020-04-19 18:35:27 +0200 |
|---|---|---|
| committer | horus | 2020-04-19 18:35:27 +0200 |
| commit | 8d3be0d8b623a405990448a5ea4fe471ab735ed7 (patch) | |
| tree | 227a325b7a5972996fb499614a1913693de7a49f /config.go | |
| parent | 5902524fb85aaf760f3e6a6695b2390868a7bd06 (diff) | |
| download | ghrss-8d3be0d8b623a405990448a5ea4fe471ab735ed7.tar.gz | |
Update to get spoken language and minor upgrade the github handling.
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") } |
