Upstream sync
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user