feat(sources): add managed RSS feeds (#41)
This commit is contained in:
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user