Versions in this module Expand all Collapse all v1 v1.0.1 May 14, 2023 v1.0.0 Mar 29, 2023 Changes in this version + type Article struct + Card *Card + TopImage imgproc.ImageResizer + type Callbacks interface + ArticleChanged func(*Article) + Move func() Move + Redraw func() + SelectedCard func() *Card + SelectedCardPos func() image.Point + State func() states.Enum + type Card struct + Article *Article + Background int + Feed *gofeed.Feed + FeedImage imgproc.ImageResizer + Foreground int + Item *gofeed.Item + ItemImage imgproc.ImageResizer + Media *media.Media + func (card *Card) DownloadImage() + func (card *Card) DownloadLink() + func (card *Card) DownloadMedia() + func (card *Card) GetMedia() (*media.Media, error) + func (card *Card) OpenArticle(ctx context.Context) + func (card *Card) OpenBrowser() error + func (card *Card) RunMedia() + func (card *Card) SaveImage() func(image.Image) + type Cards []*Card + func (cards Cards) Len() int + func (cards Cards) Less(i, k int) bool + func (cards Cards) Swap(i, k int) + type ImageCache interface + Load func(any) (any, bool) + Store func(any, any) + type ImgDownloader struct + func (d *ImgDownloader) Download(url string, callback func(any)) + type Move interface + Down func() + Left func() + Right func() + Up func() + type Option func(*Photon) + func WithDownloadPath(downloadPath string) Option + func WithHTTPClient(c *http.Client) Option + func WithImageCache(ic ImageCache) Option + func WithMediaExtractor(extractor string) Option + func WithMediaImageCmd(imageCmd string) Option + func WithMediaTorrentCmd(torrentCmd string) Option + func WithMediaVideoCmd(videoCmd string) Option + type Photon struct + Cards Cards + ImgDownloader *ImgDownloader + KeyBindings *keybindings.Registry + OpenedArticle *Article + VisibleCards Cards + func New(cb Callbacks, paths []string, options ...Option) (*Photon, error) + func (p *Photon) DownloadFeeds() + func (p *Photon) GetStatus() string + func (p *Photon) SearchQuery(q string) + func (p *Photon) SetStatus(text string) + func (p *Photon) SetStatusWithSpinner(text string) + func (p *Photon) StatusWithTimeout(text string, d time.Duration) + type Status struct