Documentation
¶
Index ¶
- func DeleteItem(sender tab.Tab, key string) tea.Cmd
- func DownloadItem(key string, index int) tea.Cmd
- func MakeChoice(question string, defaultChoice bool) tea.Cmd
- func MarkAsRead(key string, index int) tea.Cmd
- func MarkAsUnread(key string, index int) tea.Cmd
- func NewItem(sender tab.Tab, editing bool, fields []string) tea.Cmd
- type Backend
- func (b Backend) Close() error
- func (b Backend) DownloadItem(key string, index int) tea.Cmd
- func (b Backend) FetchAllArticles(_ string) tea.Cmd
- func (b Backend) FetchArticles(feedName string) tea.Cmd
- func (b Backend) FetchCategories(_ string) tea.Cmd
- func (b Backend) FetchDownloadedArticles(_ string) tea.Cmd
- func (b Backend) FetchFeeds(catName string) tea.Cmd
- func (b Backend) MarkAsRead(key string, index int) tea.Cmd
- func (b Backend) MarkAsUnread(key string, index int) tea.Cmd
- func (b Backend) RemoveDownload(key string) error
- func (b *Backend) SetOfflineMode(mode bool)
- type DeleteItemMsg
- type DownloadItemMsg
- type FetchArticleSuccessMsg
- type FetchErrorMsg
- type FetchSuccessMsg
- type Fetcher
- type MakeChoiceMsg
- type MarkAsReadMsg
- type MarkAsUnreadMsg
- type NewItemMsg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteItem ¶
DeleteItem is a function to tell the main model that a new item needs to be removed from the list
func DownloadItem ¶ added in v1.1.0
DownloadItem is a function to tell the main model that a new item needs to be downloaded
func MakeChoice ¶ added in v1.3.0
MakeChoice is a function to tell the main model that a choice needs to be made
func MarkAsRead ¶ added in v1.5.0
MarkAsRead is a function to tell the main model that a new item needs to be marked as read
func MarkAsUnread ¶ added in v1.5.0
MarkAsUnread is a function to tell the main model that a new item needs to be marked as unread
Types ¶
type Backend ¶
Backend uses a local cache to get all the feeds and their articles
func (Backend) DownloadItem ¶ added in v1.1.0
DownloadItem returns a tea.Cmd which downloads an item
func (Backend) FetchAllArticles ¶ added in v1.0.2
FetchAllArticles returns a tea.Cmd which gets all the articles
func (Backend) FetchArticles ¶
FetchArticles returns a tea.Cmd which gets the articles
func (Backend) FetchCategories ¶
FetchCategories returns a tea.Cmd which gets the category list
func (Backend) FetchDownloadedArticles ¶ added in v1.1.0
FetchDownloaded returns a tea.Cmd which gets the downloaded articles
func (Backend) FetchFeeds ¶
FetchFeeds returns a tea.Cmd which gets the feeds for a category
func (Backend) MarkAsRead ¶ added in v1.5.0
MarkAsRead marks an article as read
func (Backend) MarkAsUnread ¶ added in v1.5.0
MarkAsUnread marks an article as unread
func (Backend) RemoveDownload ¶ added in v1.2.0
RemoveDownload tries to remove a download from the backend
func (*Backend) SetOfflineMode ¶ added in v1.2.0
SetOfflineMode sets the offline mode of the backend
type DeleteItemMsg ¶ added in v1.3.0
DeleteItemMsg is a message to tell the main model that a new item needs to be removed from the list
type DownloadItemMsg ¶ added in v1.3.0
DownloadItemMsg is a message to tell the main model that a new item needs to be downloaded
type FetchArticleSuccessMsg ¶ added in v1.3.0
FetchArticleSuccessMsg is a message that is sent when the fetching of the articles was successful
type FetchErrorMsg ¶ added in v1.3.0
FetchErrorMsgssage that is sent when the fetching of the categories or feeds failed
type FetchSuccessMsg ¶ added in v1.3.0
FetchSuccessMsg is a message that is sent when the fetching of the categories or feeds was successful
type MakeChoiceMsg ¶ added in v1.3.0
MakeChoiceMsg is a message to tell the main model that a choice needs to be made
type MarkAsReadMsg ¶ added in v1.5.0
MarkAsRead is a message to tell the main model that a new item needs to be marked as read
type MarkAsUnreadMsg ¶ added in v1.5.0
MarkAsUnread is a message to tell the main model that a new item needs to be marked as unread