Documentation
¶
Index ¶
- func AppendNewItemsViaIMAP(items ItemsWithFolders) error
- func CloseDB()
- func CommitToCache(items ItemsWithFolders) error
- func CommitToDB(item *dbFeedItem) error
- func InitDB()
- func IsExistingID(guid string) bool
- func MigrateDB()
- type FeedWithFolder
- type FeedsWithFolders
- type FlatURLs
- type InputURLs
- type ItemWithFolder
- type ItemsCache
- type ItemsWithFolders
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendNewItemsViaIMAP ¶
func AppendNewItemsViaIMAP(items ItemsWithFolders) error
AppendNewItemsViaIMAP puts items in to corresponding imap folders
func CommitToCache ¶
func CommitToCache(items ItemsWithFolders) error
CommitToCache saves item data to db
func IsExistingID ¶
IsExistingID tries to find matching id in db
Types ¶
type FeedWithFolder ¶
FeedWithFolder represents folder name and feed item combined
type FeedsWithFolders ¶
type FeedsWithFolders []FeedWithFolder
FeedsWithFolders represents collection of FeedWithFolder
type ItemWithFolder ¶
ItemWithFolder represents rss item (post), folder and original feed title cobined
type ItemsWithFolders ¶
type ItemsWithFolders []ItemWithFolder
ItemsWithFolders represents collection of ItemWithFolder
func FetchNewFeedItems ¶
func FetchNewFeedItems() ItemsWithFolders
FetchNewFeedItems loads configuration, fetches rss items and discards ones that are in cache already returning new items and new version of a cache
Click to show internal directories.
Click to hide internal directories.