feat: implement webhook notification system and integrate into queue manager
Build / Build and Push (push) Successful in 51s

This commit is contained in:
2026-06-08 16:41:22 +01:00
parent 71e066fe0d
commit e23a0dd292
7 changed files with 76 additions and 4 deletions
+3 -1
View File
@@ -14,18 +14,20 @@ type Manager struct {
TriggerChan chan struct{}
StopChan chan struct{}
Broadcast func(string, interface{})
WebhookURL string
encoder *encoder.FFmpegManager
isProcessing bool
mu sync.Mutex
}
func NewManager(ffmpegPath, tempDir string, broadcast func(string, interface{})) *Manager {
func NewManager(ffmpegPath, tempDir, webhookURL string, broadcast func(string, interface{})) *Manager {
return &Manager{
FFmpegPath: ffmpegPath,
TempDir: tempDir,
TriggerChan: make(chan struct{}, 1),
StopChan: make(chan struct{}),
Broadcast: broadcast,
WebhookURL: webhookURL,
encoder: encoder.NewManager(ffmpegPath),
}
}