18 lines
288 B
Go
18 lines
288 B
Go
package service
|
|
|
|
import (
|
|
"context"
|
|
|
|
"wucher/internal/queue"
|
|
)
|
|
|
|
type EmailDeliveryResult struct {
|
|
Provider string
|
|
ProviderMessageID string
|
|
RequestID string
|
|
}
|
|
|
|
type EmailSender interface {
|
|
Send(ctx context.Context, job queue.EmailJob) (EmailDeliveryResult, error)
|
|
}
|