feeds

package
v0.0.0-...-9a2d8fb Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2013 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchRefreshChannels

func FetchRefreshChannels()

func LoadAllEntry

func LoadAllEntry()

func LoadEntry

func LoadEntry(category string)

func NewFeed

func NewFeed(filepath string, uri string) (*m.Feed, []m.Entry, error)

func RefreshCategory

func RefreshCategory()

func RefreshChannel

func RefreshChannel()

func Subscribe

func Subscribe()

func Unsubscribe

func Unsubscribe()

Types

type EntryOperator

type EntryOperator interface {
	Save([]Entry) error
	Save2([]Entry) ([]Entry, error)
	SaveOne(Entry) (interface{}, error)
	TopN(skip, limit int) ([]Entry, error)
	TopNByCategory(skip, limit int, category string) ([]Entry, error)
	TopNByFeed(skip, limit int, feed string) ([]Entry, error)
	MarkRead(link string, readed bool) error
	SetContent(link string, filepath string, words int, imgs []string) error
}

func NewEntryOperator

func NewEntryOperator() EntryOperator

type FeedOperator

type FeedOperator interface {
	Save(feeds []Feed) error
	Save2(feeds []Feed) ([]Feed, error)
	Upsert(f *Feed) error
	Find(uri string) (*Feed, error)
	TimeoutFeeds() ([]Feed, error)
	AllFeeds() ([]Feed, error)
	Touch(uri string, ttl int) error
	Remove(link string) error
	Disable(link string, dis bool) error
	Update(f *Feed) error
}

func NewFeedOperator

func NewFeedOperator() FeedOperator

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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