Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var DefaultCacheDuration = 24 * time.Hour
DefaultCacheDuration is the default duration for which an item is cached
var DefaultCacheSize = 100
DefaultCacheSize is the default size of the cache
Functions ¶
func DeleteItem ¶
DeleteItem is a function to tell the main model that a new item needs to be removed from the list
Types ¶
type Backend ¶
The Backend uses a local cache to get all the feeds and their articles
func (Backend) FetchArticles ¶
FetchArticles returns a tea.Cmd which gets the articles from the backend via a string key
func (Backend) FetchCategories ¶
FetchCategories returns a tea.Cmd which gets the category list fron the backend
type Cache ¶
Cache is a basic cache to read and write gofeed.Items based on the URL
func (*Cache) GetArticle ¶
GetArticle returns an article list from the cache or fetches it from the internet if it is not cached and updates the cache, it also updates expired items
type DeleteItemMessage ¶
DeleteItemMessage is a message to tell the main model that a new item needs to be removed from the list
type FetchErrorMessage ¶
FetchErrorMessage is a message that is sent when the fetching of the categories or feeds failed
type FetchSuccessMessage ¶
FetchSuccessMessage is a message that is sent when the fetching of the categories or feeds was successful