Initial import with modified Dockerfile for env-based config generation

This commit is contained in:
2026-06-22 11:56:10 +03:00
parent 28fa7537ac
commit 6bf27aa40e
25 changed files with 3228 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
package notifier
import (
"context"
"github.com/vincentc-afk/gitea-notification-hub/internal/event"
)
// Notifier defines the interface for sending notifications
// This abstraction allows for different notification providers (Slack, Teams, Discord, etc.)
type Notifier interface {
// SendDirect sends a direct message to a user
SendDirect(ctx context.Context, userID string, msg *event.Notification) error
// SendChannel sends a message to a channel
SendChannel(ctx context.Context, channel string, msg *event.Notification) error
}