package
Version:
v0.0.3
Opens a new window with list of versions in this module.
Published: Feb 28, 2015
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Find the rss feed url from a given url
Cron to fetch all the rss content
Fetch the content of the url and unmarshal the body to a struct
type Feed struct {
FeedId string `json:"feedId"`
FeedUrl string `json:"feedUrl"`
LastUpdated time.Time `json:"-"`
}
The feed
Fetch all feeds from the db
type Item struct {
Title string `xml:"title"`
Link string `xml:"link"`
PubDate string `xml:"pubDate"`
}
type Items struct {
XMLName xml.Name `xml:"channel"`
LastBuildDate string `xml:"lastBuildDate"`
Title string `xml:"title"`
ItemList []Item `xml:"item"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.