Start to wire up sudo email, add email websocket

This commit is contained in:
Eli Ribble 2026-02-18 17:01:02 +00:00
parent 9cbb81f347
commit ea1af2da53
No known key found for this signature in database
7 changed files with 81 additions and 4 deletions

View file

@ -5,6 +5,8 @@ import (
"fmt"
"sync"
commsemail "github.com/Gleipnir-Technology/nidus-sync/comms/email"
"github.com/Gleipnir-Technology/nidus-sync/config"
"github.com/Gleipnir-Technology/nidus-sync/db"
"github.com/Gleipnir-Technology/nidus-sync/db/enums"
"github.com/Gleipnir-Technology/nidus-sync/db/models"
@ -23,6 +25,12 @@ func Start(ctx context.Context) {
channelJobEmail = make(chan email.Job, 100) // Buffered channel to prevent blocking
channelJobText = make(chan text.Job, 100) // Buffered channel to prevent blocking
waitGroup.Add(1)
go func() {
defer waitGroup.Done()
commsemail.StartWebsocket(ctx, config.ForwardEmailAPIToken)
}()
waitGroup.Add(1)
go func() {
defer waitGroup.Done()