feed

package
v0.0.0-...-1d6f15f Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2015 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fetch

func Fetch(uri string) string

func RecordParsingFailure

func RecordParsingFailure(id int, database *sql.DB)

Types

type Feed

type Feed struct {
	Id      int
	Title   string
	Updated time.Time
	Items   []Item
}

func Parse

func Parse(data []byte) (*Feed, error)

func (*Feed) Save

func (feed *Feed) Save(database *sql.DB) error

type FeedItem

type FeedItem struct {
	Id          int
	Uri         string
	LastUpdated time.Time
}

func GetAll

func GetAll(database *sql.DB) []FeedItem

func GetOne

func GetOne(feed_id int, database *sql.DB) FeedItem

type Item

type Item struct {
	Title   string
	Content string
	Url     string
	Date    time.Time
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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