#13: implement Outbound Queue, Retry Backoff Engine & DSN Bounce Generator (RFC 3464)

This commit is contained in:
Lucas Rayan committed 2026-07-25 10:33:07 -03:00
1 parent 45aaf2a279
commit af35211094
12 files changed
+886 -68

No files matched your search

@@ -0,0 +1,9 @@
package port
import (
"context"
)
type MXResolver interface {
LookupMX(ctx context.Context, domain string) ([]string, error)
}
@@ -0,0 +1,13 @@
package port
import (
"context"
"lambdamail/protocols/internal/domain/entity"
)
type OutboundRepository interface {
Enqueue(ctx context.Context, job *entity.OutboundJob) error
FetchNextReady(ctx context.Context, workerID string, limit int) ([]*entity.OutboundJob, error)
UpdateJob(ctx context.Context, job *entity.OutboundJob) error
}