From b10e67011b5a4c7e67312d3c4f3cf0469addaf4f Mon Sep 17 00:00:00 2001 From: abdegenius Date: Wed, 6 Nov 2024 21:42:14 +0100 Subject: [PATCH] Updates --- cmd/relayproxy/config/notifier.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cmd/relayproxy/config/notifier.go b/cmd/relayproxy/config/notifier.go index 8ab7779254e..9dc888c7da8 100644 --- a/cmd/relayproxy/config/notifier.go +++ b/cmd/relayproxy/config/notifier.go @@ -5,12 +5,12 @@ import "fmt" type NotifierConf struct { Kind NotifierKind `mapstructure:"kind" koanf:"kind"` // Deprecated: Use WebhookURL instead - SlackWebhookURL string `mapstructure:"slackWebhookUrl" koanf:"slackwebhookurl"` - EndpointURL string `mapstructure:"endpointUrl" koanf:"endpointurl"` - Secret string `mapstructure:"secret" koanf:"secret"` - Meta map[string]string `mapstructure:"meta" koanf:"meta"` - Headers map[string][]string `mapstructure:"headers" koanf:"headers"` - WebhookURL string `mapstructure:"webhookUrl" koanf:"webhookurl"` + SlackWebhookURL string `mapstructure:"slackWebhookUrl" koanf:"slackwebhookurl"` + EndpointURL string `mapstructure:"endpointUrl" koanf:"endpointurl"` + Secret string `mapstructure:"secret" koanf:"secret"` + Meta map[string]string `mapstructure:"meta" koanf:"meta"` + Headers map[string][]string `mapstructure:"headers" koanf:"headers"` + WebhookURL string `mapstructure:"webhookUrl" koanf:"webhookurl"` } func (c *NotifierConf) IsValid() error {