feat(sources): add managed RSS feeds (#41)

This commit is contained in:
2026-11-25 01:42:27 +01:00
parent 12acb36612
commit 136d9b3b59
38 changed files with 2103 additions and 67 deletions

View File

@ -26,6 +26,7 @@ func ContentStatus(a Article) string {
}
type Article struct {
FeedGUID string
ContentState string
Source string
Title string
@ -41,6 +42,16 @@ type Scraper interface {
Scrape(ctx context.Context, symbols []string) ([]Article, error)
}
// FeedCounts contains only aggregate fetch outcomes, never feed/article values.
type FeedCounts struct {
Attempted int `json:"attempted"`
Succeeded int `json:"succeeded"`
Failed int `json:"failed"`
}
type ReportedScraper interface {
ScrapeWithDiagnostics(context.Context, []string) ([]Article, FeedCounts, error)
}
// ArticleEnricher is an optional, transient enrichment port. Generation calls
// it only after source limits, never for the full collected list.
type ArticleEnricher interface {