Documentation ¶
Index ¶
Constants ¶
View Source
const ( WORDPRESS_DATE_FORMAT = "Mon, 02 Jan 2006 15:04:05 -0700" DEFAULT_TIMEOUT time.Duration = 10 // seconds RESPONSE_TIMEOUT time.Duration = 120 // seconds )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel struct { Title string `xml:"title"` Link string `xml:"link"` Description string `xml:"description"` Language string `xml:"language"` LastBuildDate RSSDate `xml:"lastBuildDate"` Image ImageAsset `xml:"image"` Subtitle string `xml:"http://www.itunes.com/dtds/podcast-1.0.dtd subtitle"` Owner ItunesOwner `xml:"http://www.itunes.com/dtds/podcast-1.0.dtd owner"` Item []Item `xml:"item"` }
Channel struct for RSS
type ImageAsset ¶
type Item ¶
type Item struct { Title string `xml:"title"` Link string `xml:"link"` Comments string `xml:"comments"` PubDate RSSDate `xml:"pubDate"` GUID string `xml:"guid"` Category []string `xml:"category"` Enclosure []ItemEnclosure `xml:"enclosure"` Description string `xml:"description"` Text string `xml:"http://purl.org/rss/1.0/modules/content/ encoded"` Duration string `xml:"http://www.itunes.com/dtds/podcast-1.0.dtd duration"` Author string `xml:"http://www.itunes.com/dtds/podcast-1.0.dtd author"` }
Item struct for each Item in the Channel
type ItemEnclosure ¶
type ItemEnclosure struct { URL string `xml:"url,attr"` Length int `xml:"length,attr"` Type string `xml:"type,attr"` }
ItemEnclosure struct for each Item Enclosure
type ItunesOwner ¶
type ItunesOwner struct { Name string `xml:"http://www.itunes.com/dtds/podcast-1.0.dtd name"` Email string `xml:"http://www.itunes.com/dtds/podcast-1.0.dtd email"` }
iTunes namespace
Click to show internal directories.
Click to hide internal directories.