package components import ( "fmt" "context" ) type NotificationService struct { ID uint Name string Type string // "email", "slack", "webhook", etc. IsEnabled bool Config map[string]string Description string EventTriggers []string PayloadTemplate string SecretKey string RetryPolicy string SuccessCount int FailureCount int } type SettingsData struct { NotificationServices []NotificationService ErrorMessage string SuccessMessage string } templ Settings(ctx context.Context, data SettingsData) { @LayoutWithContext("Application Settings", ctx) {
Configure global settings for your GoMFT instance.
Add your first notification service to start receiving alerts about jobs and system events.
{ service.Description }
if service.Type == "webhook" {