Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Feed ¶
type Feed struct { Title string `json:"title"` Description string `json:"description"` UpdateURL string `json:"updateurl"` Link string `json:"link"` Items []string `json:"items"` }
Feed is the structure of the Feed from RSS that we care about. The Items contains the unique Location.
func CreateFeed ¶
CreateFeed will process the RSS/ATOM Feed into our Feed structure
func (*Feed) FindNewItems ¶
FindNewItems will process the items under the feed and add return any new ones since last update
type Item ¶
type Item struct { FeedURL string `json:"feedurl"` Title string `json:"title"` Content string `json:"content"` Link string `json:"link"` Date time.Time `json:"date"` Location string `json:"location"` Type string `json:"type"` Length string `json:"length"` Read bool `json:"read"` }
Item is the structure of the Item from RSS that we care about.
func CreateItem ¶
CreateItem will process the RSS/ATOM Item element into our Item structure
Click to show internal directories.
Click to hide internal directories.