camlistore.org: camlistore.org/pkg/importer/feed/rss Index | Files

package rss

import "camlistore.org/pkg/importer/feed/rss"

Package rss defines XML data structures for an RSS feed.

Index

Package Files

rss.go

type Enclosure Uses

type Enclosure struct {
    Url    string `xml:"url,attr"`
    Length string `xml:"length,attr,omitempty"`
    Type   string `xml:"type,attr"`
}

type Guid Uses

type Guid struct {
    Guid        string `xml:",chardata"`
    IsPermaLink bool   `xml:"isPermaLink,attr,omitempty"`
}

type Item Uses

type Item struct {
    Title       string        `xml:"title,omitempty"`
    Link        string        `xml:"link,omitempty"`
    Description string        `xml:"description,omitempty"`
    Author      string        `xml:"author,omitempty"`
    Enclosure   *Enclosure    `xml:"enclosure"`
    Guid        *Guid         `xml:"guid"`
    PubDate     string        `xml:"pubDate,omitempty"`
    Source      *Source       `xml:"source"`
    Content     string        `xml:"encoded,omitempty"`
    Date        string        `xml:"date,omitempty"`
    Published   string        `xml:"published,omitempty"`
    Media       *MediaContent `xml:"content"`
}
type Link struct {
    Rel      string `xml:"rel,attr"`
    Href     string `xml:"href,attr"`
    Type     string `xml:"type,attr"`
    Chardata string `xml:",chardata"`
}

type MediaContent Uses

type MediaContent struct {
    XMLBase string `xml:"http://search.yahoo.com/mrss/ content"`
    URL     string `xml:"url,attr"`
    Type    string `xml:"type,attr"`
}

type RSS Uses

type RSS struct {
    XMLName       string  `xml:"rss"`
    Title         string  `xml:"channel>title"`
    Link          []Link  `xml:"channel>link"`
    Description   string  `xml:"channel>description"`
    PubDate       string  `xml:"channel>pubDate,omitempty"`
    LastBuildDate string  `xml:"channel>lastBuildDate,omitempty"`
    Items         []*Item `xml:"channel>item"`
}
func (r *RSS) BaseLink() string

type Source Uses

type Source struct {
    Source string `xml:",chardata"`
    Url    string `xml:"url,attr"`
}

Package rss is imported by 16 packages. Updated 2018-02-07. Refresh now. Tools for package owners.