Documentation
¶
Overview ¶
Package model defines data types that are used throughout the application.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bookmark ¶ added in v0.3.0
type Bookmark struct {
ID int64 `json:"id"`
ItemID int64 `json:"item_id"`
Deadline time.Time `json:"deadline"`
Comment string `json:"comment"`
Finished bool `json:"finished"`
FinishedWhen time.Time `json:"finish_stamp"`
}
Bookmark represents my intention to read some article at some point in the future.
type Feed ¶
type Feed struct {
ID int64
Name string
Language string
URL *url.URL
Homepage *url.URL
RefreshInterval time.Duration
LastRefresh time.Time
Active bool
}
Feed is an RSS feed we can subscribe to.
type Item ¶
type Item struct {
ID int64
FeedID int64
Title string
URL *url.URL
Rating rating.Rating
GuessedRating rating.Rating
Timestamp time.Time
Body string
Stripped string
// contains filtered or unexported fields
}
Item is a news article, blog post, etc.
func (*Item) EffectiveRating ¶
EffectiveRating returns an Item's guessed Rating if it is unrated, otherwise the Item's Rating.
func (*Item) IsProbablyBoring ¶ added in v0.12.0
IsProbablyBoring returns true if the Item has been rated as Boring or if the Critic thinks it is more Boring than Interesting.
Click to show internal directories.
Click to hide internal directories.