Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFeedUrlForUsername ¶
GetFeedUrlForUsername produces the rss feed url for a given username
Types ¶
type Attributes ¶
Attributes represents the json structure inside the attributes node
func (*Attributes) UnmarshalXML ¶
func (c *Attributes) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
UnmarshalXML will parse the enclosed json and produce an Attributes element
type Channel ¶
type Channel struct { Title string `xml:"title"` Link string `xml:"link"` Description string `xml:"description"` Items []Item `xml:"item"` }
Channel contains all the meta information for the channel and a list of items
type Item ¶
type Item struct { Enclosure Enclosure `xml:"enclosure"` Link string `xml:"link"` Guid string `xml:"guid"` PubDate PubDate `xml:"pubDate"` Attributes Attributes `xml:"attributes"` }
Item is one entry in the feed
type PubDate ¶
PubDate wraps time.Time to implement the needed interface for the xml unmarshaller
func (*PubDate) UnmarshalXML ¶
UnmarshalXML will parse the time format in the feed
type Rss ¶
type Rss struct {
Channel Channel `xml:"channel"`
}
Rss it the root node of the rss feed containing just one Channel node
func GetLocalArchiveFeed ¶
GetLocalArchiveFeed creates a feed including all locally archived data
func NewFeedFromXml ¶
NewFeedFromXml produces an Rss struct with the information based on the given xml