This commit stabilizes the 'Multi-Digest Architecture' feature (Phase 1). Changes: - Fix mocks in 'internal/app' and 'internal/testutil' to match new EmailService interface. - Update 'ProcessDigest' calls in tests to respect new 'Digests' config slice. - Update 'internal/config' tests to satisfy stricter validation rules (added missing 'host', 'view' fields). - Verify 'Slugify' utility is present and tested. Result: - 'make lint', 'make test', and 'make build' now pass. - The project is ready for Phase 2 (Filter Engine).
12 lines
302 B
Go
12 lines
302 B
Go
package services
|
|
|
|
import (
|
|
"miniflux-digest/internal/config"
|
|
"miniflux-digest/internal/models"
|
|
"os"
|
|
)
|
|
|
|
type EmailService interface {
|
|
Send(smtpConfig config.ConfigSmtp, digestConfig config.ConfigDigest, overviewFile *os.File, groupedEntryFiles []*os.File, data *models.OverviewTemplateData) error
|
|
}
|