Documentation
¶
Overview ¶
Package feed provides the basic data type and logic to represent and interact with RSS feeds.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInactive = errors.New("feed is not active")
ErrInactive indicates that a Feed is not active.
Functions ¶
This section is empty.
Types ¶
type Feed ¶
type Feed struct { ID int64 Name string URL string Homepage string Interval time.Duration LastUpdate time.Time Active bool // contains filtered or unexported fields }
Feed represents an RSS feed.
type Item ¶
type Item struct { ID int64 FeedID int64 URL string Title string Description string Timestamp time.Time Read bool Rating float64 ManuallyRated bool Tags []tag.Tag // contains filtered or unexported fields }
Item represents a single news item from an RSS Feed.
func (*Item) HasTag ¶
HasTag returns true if the Tag with the given ID is attached to the receiver Item.
func (*Item) HasTagNamed ¶
HasTagNamed returns true if the receiver carries the Tag with the given name.
func (*Item) IsDownloaded ¶
IsDownloaded returns true if the Item's linked URL has been downloaded to the local archive.
func (*Item) RatingString ¶
RatingString returns the Item's rating as a string.
Click to show internal directories.
Click to hide internal directories.