Deretard the orchestrator

This commit is contained in:
2025-10-11 11:27:45 +02:00
parent a36ce8ff78
commit 63b8e16b21
3 changed files with 108 additions and 146 deletions

View File

@@ -23,7 +23,7 @@ type ZulipWebhook struct {
}
// NewZulipWebhook creates a new Zulip webhook client
func NewZulipWebhook(url, email, token string) *ZulipWebhook {
func NewZulipWebhook(url, email, token string) Webhook {
logger.Info("Zulip webhook client initialized with email: %s", email)
// Parse HTTP timeout ONCE at initialization
@@ -74,3 +74,5 @@ func (z *ZulipWebhook) Post(channel, topic, message string) error {
logger.Info("Zulip message sent successfully to channel: %s, topic: %s", channel, topic)
return nil
}
var _ Webhook = &ZulipWebhook{}