Preliminary parse error handling

This commit is contained in:
Simon Martens
2024-11-10 23:44:30 +01:00
parent 1adb7122e3
commit 398ef04c3e
4 changed files with 58 additions and 94 deletions

View File

@@ -33,6 +33,7 @@ type Config struct {
WebHookEndpoint string `json:"webhook_endpoint" envconfig:"WEBHOOK_ENDPOINT"`
WebHookSecret string `json:"webhook_secret" envconfig:"WEBHOOK_SECRET"`
Debug bool `json:"debug" envconfig:"DEBUG"`
LogData bool `json:"log_data" envconfig:"LOG_DATA"`
}
func NewConfigProvider(files []string) *ConfigProvider {