Upstream sync

This commit is contained in:
Senad Uka
2018-05-21 18:47:13 +02:00
parent 157b23da3c
commit 39c614fb98
5 changed files with 74 additions and 14 deletions

View File

@@ -25,6 +25,7 @@ type Config struct {
Blue365 Blue365Config
Email EmailConfig
GoogleShortener GoogleShortenerConfig
Eligibility EligibilityConfig
}
// AppConfig represents the configuration values about the application.
@@ -137,6 +138,10 @@ type GoogleShortenerConfig struct {
SecretKey string
}
type EligibilityConfig struct {
Url string
}
// Read returns the configuration values,
// based on the configuration files and environment variables.
func Read() (*Config, error) {
@@ -238,6 +243,9 @@ func Read() (*Config, error) {
ClientID: viper.GetString("google-shortener.client-id"),
SecretKey: viper.GetString("google-shortener.secret-key"),
},
Eligibility : EligibilityConfig{
Url : viper.GetString("eligibility.url"),
},
}, nil
}