feed

package
v0.0.0-...-a851fb6 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Feed

type Feed struct {
	Title string
	URL   string
	// contains filtered or unexported fields
}

Feed implements the FeedInterface.

func (*Feed) End

func (f *Feed) End()

End terminates the feed.

func (*Feed) GetTitle

func (f *Feed) GetTitle() string

GetTitle does what you would expect.

func (*Feed) Start

func (f *Feed) Start(URL string) (chan *storage.RssEntry, error)

Start begins the feed. It will continue to retrieve items from the URL at an interval. Although no formal guarantees are made regarding duplicates, generally, it can be assumed that duplicates will not be sent on the pipe for a while.

type FeedInterface

type FeedInterface interface {
	// The channel returned from "Start" will never return duplicate entries.
	Start(URL string) (chan *storage.RssEntry, error)
	GetTitle() string
	End()
}

FeedInterface decouples the "RSS/Atom" interface from our implementation.

Jump to

Keyboard shortcuts

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