Documentation ¶
Index ¶
- type Entry
- type EntryList
- type Feed
- type FeedStub
- type RssDatabase
- type RssEngine
- func (rss *RssEngine) AddFeedForUser(userId int64, feedUrl string) (feed *Feed, entries []*Entry, err error)
- func (rss *RssEngine) AddSubscription(userId, feedId int64) (err error)
- func (rss *RssEngine) GetEntriesForFeed(feedId int64) (entries []*Entry, err error)
- func (rss *RssEngine) GetFeedStubsForUser(userId int64) (feeds []*FeedStub, err error)
- func (rss *RssEngine) GetFeedsForUser(userId int64) (feeds []*Feed, err error)
- type RssParser
- type Scanner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type RssDatabase ¶
type RssDatabase struct {
// contains filtered or unexported fields
}
func NewRssDatabase ¶
func NewRssDatabase(database, username, password string) *RssDatabase
func (*RssDatabase) AddSubscription ¶
func (rss *RssDatabase) AddSubscription(userId, feedId int64, isRead bool) error
func (*RssDatabase) GetFeedIdByUrl ¶
func (rss *RssDatabase) GetFeedIdByUrl(feedUrl string) (id int64, err error)
type RssEngine ¶
type RssEngine struct {
// contains filtered or unexported fields
}
func NewRssEngine ¶
func (*RssEngine) AddFeedForUser ¶
func (*RssEngine) AddSubscription ¶
Currently this just adds subscription to feed, not to entries. Need to fix
func (*RssEngine) GetEntriesForFeed ¶
GetEntriesForFeed gets all entries for a feed.
func (*RssEngine) GetFeedStubsForUser ¶
Click to show internal directories.
Click to hide internal directories.