Documentation
¶
Index ¶
- type Article
- type Config
- type Controller
- func (c *Controller) GetAllArticlesFromDB()
- func (c *Controller) GetArticleForSelection() *Article
- func (c *Controller) GetSelectedArticle() *Article
- func (c *Controller) Init(cfg, theme, dbFile string)
- func (c *Controller) InputFunc(event *tcell.EventKey) *tcell.EventKey
- func (c *Controller) MarkArticle()
- func (c *Controller) OpenLink(link string)
- func (c *Controller) Quit()
- func (c *Controller) SelectArticle(row, col int)
- func (c *Controller) SelectFeed(row, col int)
- func (c *Controller) UpdateFeeds()
- func (c *Controller) UpdateLoop()
- type DB
- func (d *DB) All() map[string][]Article
- func (d *DB) CleanUp()
- func (d *DB) CreateTables(rss *RSS)
- func (d *DB) Delete(a Article)
- func (d *DB) Init(c *Controller, dbFile string)
- func (d *DB) MarkAllRead(a Article)
- func (d *DB) MarkAllUnread(a Article)
- func (d *DB) MarkRead(a *Article)
- func (d *DB) MarkUnread(a *Article)
- func (d *DB) Save(a Article)
- type RSS
- type Theme
- type Window
- func (w *Window) AddToArticles(a *Article)
- func (w *Window) AddToFeeds(title string, unread, total int, ref string)
- func (w *Window) AddToPreview(a *Article)
- func (w *Window) ArticleSelectedFunc(f func(r, c int))
- func (w *Window) ArticlesHasFocus() bool
- func (w *Window) ClearArticles()
- func (w *Window) ClearFeeds()
- func (w *Window) FeedSelectedFunc(f func(r, c int))
- func (w *Window) Init(c *Controller, inputFunc func(event *tcell.EventKey) *tcell.EventKey)
- func (w *Window) InitFlex()
- func (w *Window) InitHelpWindow()
- func (w *Window) InitStatusWindow()
- func (w *Window) MoveDown()
- func (w *Window) MoveUp()
- func (w *Window) Start()
- func (w *Window) SwitchFocus()
- func (w *Window) TriggerHelp()
- func (w *Window) TriggerPreview()
- func (w *Window) UpdateStatus()
- func (w *Window) UpdateStatusTicker()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // only exported fields will be encoded/decoded in JSON, // fields must start with capital letters to be exported. OPML string `json:"opml"` Feeds []map[string]string `json:"feeds"` KeyMoveDown string `json:"keyMoveDown"` KeyMoveUp string `json:"keyMoveUp"` KeySwitchWindows string `json:"keySwitchWindows"` KeyQuit string `json:"keyQuit"` KeyHelp string `json:"keyHelp"` KeyPreview string `json:"keyPreview"` KeyMarkArticle string `json:"keyMarkArticle"` KeyOpenLink string `json:"keyOpenLink"` DaysKeepDeletedArticle int `json:"daysKeepDeletedArticle"` DaysKeepReadArticle int `json:"daysKeepReadArticle"` SkipArticlesOlderThanDays int `json:"skipArticlesOlderThanDays"` SecondsBetweenUpdates int `json:"secondsBetweenUpdates"` }
func (*Config) GetConfigKeys ¶
func (*Config) LoadConfig ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func (*Controller) GetAllArticlesFromDB ¶
func (c *Controller) GetAllArticlesFromDB()
func (*Controller) GetArticleForSelection ¶
func (c *Controller) GetArticleForSelection() *Article
func (*Controller) GetSelectedArticle ¶
func (c *Controller) GetSelectedArticle() *Article
func (*Controller) Init ¶
func (c *Controller) Init(cfg, theme, dbFile string)
func (*Controller) InputFunc ¶
func (c *Controller) InputFunc(event *tcell.EventKey) *tcell.EventKey
func (*Controller) MarkArticle ¶
func (c *Controller) MarkArticle()
func (*Controller) OpenLink ¶
func (c *Controller) OpenLink(link string)
func (*Controller) Quit ¶
func (c *Controller) Quit()
func (*Controller) SelectArticle ¶
func (c *Controller) SelectArticle(row, col int)
func (*Controller) SelectFeed ¶
func (c *Controller) SelectFeed(row, col int)
func (*Controller) UpdateFeeds ¶
func (c *Controller) UpdateFeeds()
UpdateFeeds will update all rss and save the result to database
func (*Controller) UpdateLoop ¶
func (c *Controller) UpdateLoop()
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) CleanUp ¶
func (d *DB) CleanUp()
CleanUp will remove deleted and read articles from database
func (*DB) CreateTables ¶
func (*DB) Init ¶
func (d *DB) Init(c *Controller, dbFile string)
func (*DB) MarkAllRead ¶
func (*DB) MarkAllUnread ¶
func (*DB) MarkUnread ¶
type RSS ¶
type RSS struct {
// contains filtered or unexported fields
}
func (*RSS) GetTitleURLFromConfig ¶
func (r *RSS) GetTitleURLFromConfig()
func (*RSS) GetTitleURLFromOPML ¶
func (*RSS) Init ¶
func (r *RSS) Init(c *Controller)
type Theme ¶
type Theme struct { FeedNames []string `json:"feedNames"` Date string `json:"date"` Time string `json:"time"` ArticleBorder string `json:"articleBorder"` PreviewBorder string `json:"previewBorder"` FeedBorder string `json:"feedBorder"` ArticleBorderTitle string `json:"articleBorderTitle"` FeedBorderTitle string `json:"feedBorderTitle"` PreviewBorderTitle string `json:"previewBorderTitle"` Highlights string `json:"highlights"` TableHead string `json:"tableHead"` Title string `json:"title"` UnreadFeedName string `json:"unreadFeedName"` TotalColumn string `json:"totalColumn"` UnreadColumn string `json:"unreadColumn"` PreviewText string `json:"previewText"` PreviewLink string `json:"previewLink"` ReadMarker string `json:"readMarker"` FeedIcon string `json:"feedIcon"` ArticleIcon string `json:"articleIcon"` PreviewIcon string `json:"previewIcon"` StatusBackground string `json:"statusBackground"` StatusText string `json:"statusText"` StatusKey string `json:"statusKey"` StatusBrackets string `json:"statusBrackets"` }
type Window ¶
type Window struct {
// contains filtered or unexported fields
}
func (*Window) AddToArticles ¶
func (*Window) AddToFeeds ¶
func (*Window) AddToPreview ¶
func (*Window) ArticleSelectedFunc ¶
func (*Window) ArticlesHasFocus ¶
func (*Window) ClearArticles ¶
func (w *Window) ClearArticles()
func (*Window) ClearFeeds ¶
func (w *Window) ClearFeeds()
ClearFeeds will clear the feed window and reset it
func (*Window) FeedSelectedFunc ¶
func (*Window) Init ¶
func (w *Window) Init(c *Controller, inputFunc func(event *tcell.EventKey) *tcell.EventKey)
func (*Window) InitHelpWindow ¶
func (w *Window) InitHelpWindow()
func (*Window) InitStatusWindow ¶
func (w *Window) InitStatusWindow()
func (*Window) SwitchFocus ¶
func (w *Window) SwitchFocus()
SwitchFocus feeds->article->preview->feeds
func (*Window) TriggerHelp ¶
func (w *Window) TriggerHelp()
func (*Window) TriggerPreview ¶
func (w *Window) TriggerPreview()
func (*Window) UpdateStatus ¶
func (w *Window) UpdateStatus()
func (*Window) UpdateStatusTicker ¶
func (w *Window) UpdateStatusTicker()
Source Files
¶
Click to show internal directories.
Click to hide internal directories.