Files
Charon/backend/internal/notifications/engine.go
GitHub Actions 718358314f chore: Update notification provider to support Discord only
- Refactored notification provider tests to use Discord webhook URLs.
- Updated frontend forms and API interactions to restrict provider type to Discord.
- Modified translations to reflect the change in supported provider types.
- Enhanced UI to indicate deprecated status for non-Discord providers.
- Adjusted documentation to align with the new provider structure.
2026-02-21 06:23:46 +00:00

24 lines
421 B
Go

package notifications
import "context"
const (
EngineLegacy = "legacy"
EngineNotifyV1 = "notify_v1"
)
type DispatchRequest struct {
ProviderID string
Type string
URL string
Title string
Message string
Data map[string]any
}
type DeliveryEngine interface {
Name() string
Send(ctx context.Context, req DispatchRequest) error
Test(ctx context.Context, req DispatchRequest) error
}