internal

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FeedItem

type FeedItem struct {
	Feed              *gofeed.Feed
	Item              *gofeed.Item
	PublishedRelative string
	FeedColor         uint8
	IsNew             bool
	Score             int
}

type FeedOptions

type FeedOptions struct {
	List  string
	Query [][]rune
	Limit int
	Since time.Time
}

type FetchResult added in v0.1.7

type FetchResult struct {
	Changed    bool
	ETag       string
	FetchAfter time.Time
}

type Printer

type Printer struct {
	InReader  io.Reader
	OutWriter io.Writer
	ErrWriter io.Writer
	// contains filtered or unexported fields
}

func NewPrinter

func NewPrinter(
	inReader io.Reader,
	outWriter io.Writer,
	errWriter io.Writer,
) *Printer

func (*Printer) ColorBackground

func (p *Printer) ColorBackground(s string, color uint8) string

func (*Printer) ColorForeground

func (p *Printer) ColorForeground(s string, color uint8) string

func (*Printer) ErrPrint

func (p *Printer) ErrPrint(a ...any)

func (*Printer) ErrPrintf

func (p *Printer) ErrPrintf(format string, a ...any)

func (*Printer) ErrPrintln

func (p *Printer) ErrPrintln(a ...any)

func (*Printer) GetSize

func (p *Printer) GetSize() (width, height int)

func (*Printer) GetStyling added in v0.1.6

func (p *Printer) GetStyling() bool

func (*Printer) Print

func (p *Printer) Print(a ...any)

func (*Printer) Printf

func (p *Printer) Printf(format string, a ...any)

func (*Printer) Println

func (p *Printer) Println(a ...any)

func (*Printer) SetStyling added in v0.1.6

func (p *Printer) SetStyling(enable bool)

type RunSummary added in v0.1.7

type RunSummary struct {
	Start        time.Time
	FeedsCount   int
	FeedsCached  int
	FeedsFetched int
	ItemsCount   int
	ItemsShown   int
}

type TerminalFeed

type TerminalFeed struct {
	// contains filtered or unexported fields
}

func NewTerminalFeed

func NewTerminalFeed(
	time utils.Time,
	printer *Printer,
	storage *storage.LocalStorage,
) *TerminalFeed

func (*TerminalFeed) DisplayColorRange added in v0.1.6

func (f *TerminalFeed) DisplayColorRange()

func (*TerminalFeed) DisplayConfig added in v0.1.6

func (f *TerminalFeed) DisplayConfig() error

func (*TerminalFeed) ExportToFile added in v0.2.0

func (f *TerminalFeed) ExportToFile(path, list string) error

func (*TerminalFeed) ExportToOPML added in v0.2.0

func (f *TerminalFeed) ExportToOPML(path, list string) error

func (*TerminalFeed) Feed

func (f *TerminalFeed) Feed(opts *FeedOptions) error

func (*TerminalFeed) Follow

func (f *TerminalFeed) Follow(urls []string, list string) error

func (*TerminalFeed) ImportFromFile added in v0.2.0

func (f *TerminalFeed) ImportFromFile(path, list string) error

func (*TerminalFeed) ImportFromOPML added in v0.2.0

func (f *TerminalFeed) ImportFromOPML(path, list string) error

func (*TerminalFeed) ListFeeds

func (f *TerminalFeed) ListFeeds(list string) error

func (*TerminalFeed) Lists

func (f *TerminalFeed) Lists() error

func (*TerminalFeed) MergeLists added in v0.1.8

func (f *TerminalFeed) MergeLists(list, otherList string) error

func (*TerminalFeed) RemoveList added in v0.1.8

func (f *TerminalFeed) RemoveList(list string) error

func (*TerminalFeed) RenameList added in v0.1.8

func (f *TerminalFeed) RenameList(oldName, newName string) error

func (*TerminalFeed) Search added in v0.2.1

func (f *TerminalFeed) Search(query string, opts *FeedOptions) error

func (*TerminalFeed) SetAgent

func (f *TerminalFeed) SetAgent(agent string)

func (*TerminalFeed) SetStyling added in v0.1.6

func (f *TerminalFeed) SetStyling(v uint8) error

func (*TerminalFeed) SetSummary added in v0.1.7

func (f *TerminalFeed) SetSummary(v uint8) error

func (*TerminalFeed) ShowCacheInfo added in v0.2.1

func (f *TerminalFeed) ShowCacheInfo() error

func (*TerminalFeed) ShowCachePath added in v0.2.1

func (f *TerminalFeed) ShowCachePath() error

func (*TerminalFeed) ShowConfigPath added in v0.2.1

func (f *TerminalFeed) ShowConfigPath() error

func (*TerminalFeed) Unfollow

func (f *TerminalFeed) Unfollow(urls []string, list string) error

func (*TerminalFeed) UpdateColorMap added in v0.1.6

func (f *TerminalFeed) UpdateColorMap(mappings string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL