feeds

package
v0.0.0-...-5f2be95 Latest Latest
Warning

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

Go to latest
Published: May 5, 2016 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Author

type Author struct {
	Name  string
	Uri   string
	Email string
}

type Binding

type Binding struct {
	Bind     func(*dom.Document, *Feed) error
	Children map[xml.Name]*Binding
}

func NewBinding

func NewBinding(bind func(*dom.Document, *Feed) error) *Binding

type Content

type Content struct {
	Body string
	Type string
}

type Entry

type Entry struct {
	Id         string
	Title      string
	Subtitle   string
	Link       string
	Date       time.Time
	Image      string
	Media      *Media
	Author     *Author
	Summary    *Content
	Categories []string
}

type Feed

type Feed struct {
	Locale     string
	Title      string
	Subtitle   string
	Link       string
	Date       time.Time
	Image      string
	Copyright  string
	Author     *Author
	Summary    *Content
	Categories []string
	Entries    []*Entry
	Ttl        int
}

func Decode

func Decode(document *dom.Document, binding *Binding) (*Feed, error)

type Media

type Media struct {
	Uri  string
	Type string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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