Documentation
¶
Overview ¶
Package fetcher provides functionality to fetch articles from Medium
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel struct {
Items []Item `xml:"item"`
}
Channel represents the channel element in RSS feed
type Item ¶
type Item struct {
Title string `xml:"title"`
Link string `xml:"link"`
PubDate string `xml:"pubDate"`
Description string `xml:"description"`
Content string `xml:"encoded"`
}
Item represents a single article in the RSS feed
type MediumFetcher ¶
type MediumFetcher struct {
// contains filtered or unexported fields
}
MediumFetcher handles fetching articles from Medium
func NewMediumFetcher ¶
func NewMediumFetcher(source string, isDomain bool) *MediumFetcher
NewMediumFetcher creates a new MediumFetcher instance
func (*MediumFetcher) FetchArticles ¶
func (m *MediumFetcher) FetchArticles() ([]models.Article, error)
FetchArticles retrieves all articles for the configured source
Click to show internal directories.
Click to hide internal directories.