Documentation
¶
Index ¶
- type Article
- type Callbacks
- type Card
- 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
- type ImageCache
- type ImgDownloader
- type Move
- type Option
- 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
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Article ¶
type Article struct {
*readability.Article
Card *Card
TopImage imgproc.ImageResizer
}
type Card ¶
type Card struct {
Item *gofeed.Item
ItemImage imgproc.ImageResizer
Feed *gofeed.Feed
FeedImage imgproc.ImageResizer
Article *Article
Media *media.Media
Foreground int
Background int
// contains filtered or unexported fields
}
func (*Card) DownloadImage ¶
func (card *Card) DownloadImage()
func (*Card) DownloadLink ¶
func (card *Card) DownloadLink()
func (*Card) DownloadMedia ¶
func (card *Card) DownloadMedia()
func (*Card) OpenArticle ¶
func (*Card) OpenBrowser ¶
type ImgDownloader ¶
type ImgDownloader struct {
// contains filtered or unexported fields
}
func (*ImgDownloader) Download ¶
func (d *ImgDownloader) Download(url string, callback func(any))
type Option ¶
type Option func(*Photon)
func WithDownloadPath ¶
func WithHTTPClient ¶
func WithImageCache ¶
func WithImageCache(ic ImageCache) Option
func WithMediaExtractor ¶
func WithMediaImageCmd ¶
func WithMediaTorrentCmd ¶
func WithMediaVideoCmd ¶
type Photon ¶
type Photon struct {
ImgDownloader *ImgDownloader
KeyBindings *keybindings.Registry
Cards Cards
VisibleCards Cards
OpenedArticle *Article
// contains filtered or unexported fields
}
func (*Photon) DownloadFeeds ¶
func (p *Photon) DownloadFeeds()
func (*Photon) SearchQuery ¶
func (*Photon) SetStatusWithSpinner ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.