Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Feed ¶
type Feed struct { ID uint `gorm:"primaryKey" json:"-"` Url string `json:"url"` Title string `json:"title"` Link string `json:"link"` Description string `json:"description"` Image *string `json:"image"` CreatedAt time.Time `json:"-"` UpdatedAt time.Time `json:"-"` }
A feed that is being subscribed to
type FeedItem ¶
type FeedItem struct { ID uint `gorm:"primaryKey"` Title string Link string Description string Author string Image *string Published time.Time FeedID uint Feed Feed }
An item in a feed
func CreateOrUpdateFeedItem ¶
Create a new feed item or update if the item already exists
func (FeedItem) SimpleDescription ¶
Returns a simplified description, removing HTML tags and shortening it.
Click to show internal directories.
Click to hide internal directories.