atom

package
v0.0.0-...-ee9a3f6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 9, 2014 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Category

type Category struct {
	Term   string `xml:"term,attr"`
	Scheme string `xml:"scheme,attr"`
	Label  string `xml:"label,attr"`
}

type Content

type Content struct {
	Type string `xml:"type,attr"`
	Src  string `xml:"src,attr"`
	Text string `xml:",chardata"`
}

type Entry

type Entry struct {
	Id           string     `xml:"id"`
	Title        string     `xml:"title"`
	Updated      time.Time  `xml:"updated"`
	Authors      []Person   `xml:"author"`
	Content      Content    `xml:"content"`
	Links        []Link     `xml:"link"`
	Summary      Text       `xml:"summary"`
	Categories   []Category `xml:"category"`
	Contributors []Person   `xml:"contributor"`
	Published    time.Time  `xml:"published"`
	Source       Metadata   `xml:"source"`
	Rights       Text       `xml:"rights"`
}

type Feed

type Feed struct {
	Metadata
	XMLName xml.Name `xml:"http://www.w3.org/2005/Atom feed"`
	Source  Metadata `xml:"source"`
	Entries []Entry  `xml:"entry"`
}

type Generator

type Generator struct {
	Uri     string `xml:"uri,attr"`
	Version string `xml:"version,attr"`
	Text    string `xml:",chardata"`
}
type Link struct {
	Href     string `xml:"href,attr"`
	Rel      string `xml:"rel,attr"`
	Type     string `xml:"type,attr"`
	Hreflang string `xml:"hreflang,attr"`
	Title    string `xml:"title,attr"`
	Length   string `xml:"length,attr"`
}

type Metadata

type Metadata struct {
	Id           string     `xml:"id"`
	Title        string     `xml:"title"`
	Updated      time.Time  `xml:"updated"`
	Authors      []Person   `xml:"author"`
	Links        []Link     `xml:"link"`
	Categories   []Category `xml:"category"`
	Contributors []Person   `xml:"contributor"`
	Generator    Generator  `xml:"generator"`
	Icon         string     `xml:"icon"`
	Rights       Text       `xml:"rights"`
	Subtitle     Text       `xml:"subtitle"`
}

type Person

type Person struct {
	Name  string `xml:"name"`
	Uri   string `xml:"uri"`
	Email string `xml:"email"`
}

type Text

type Text struct {
	Type string `xml:"type,attr"`
	Text string `xml:",chardata"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL