internal

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2025 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExploreOptions added in v0.3.0

type ExploreOptions struct {
	Url    string
	Update bool
	Limit  int
	Query  string
	Import bool
}

type ExploreSearchItem added in v0.3.0

type ExploreSearchItem struct {
	ListColor uint8
	Outline   *utils.OPMLOutline
	Score     int
}

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
	Regexp     *regexp.Regexp
	Limit      int
	Since      time.Time
	Proxy      *url.URL
	CachedOnly bool
}

type FetchResult added in v0.1.7

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

type OPMLExportResult added in v0.4.1

type OPMLExportResult struct {
	FeedCount int64
	ListCount int64
}

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) Explore added in v0.3.0

func (f *TerminalFeed) Explore(opts *ExploreOptions) error

func (*TerminalFeed) ExploreImport added in v0.3.0

func (f *TerminalFeed) ExploreImport(opts *ExploreOptions) error

func (*TerminalFeed) ExploreRemove added in v0.3.0

func (f *TerminalFeed) ExploreRemove(url string) error

func (*TerminalFeed) ExploreSearch added in v0.3.0

func (f *TerminalFeed) ExploreSearch(opts *ExploreOptions) 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, cachedOnly bool) 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) MinifluxPull added in v0.4.1

func (f *TerminalFeed) MinifluxPull() error

func (*TerminalFeed) MinifluxPush added in v0.4.1

func (f *TerminalFeed) MinifluxPush() 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) SearchRegexp added in v0.4.4

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

func (*TerminalFeed) SetBatchSize added in v0.4.0

func (f *TerminalFeed) SetBatchSize(batchSize uint) error

func (*TerminalFeed) SetDefaultExploreRepository added in v0.3.0

func (f *TerminalFeed) SetDefaultExploreRepository(repository string)

func (*TerminalFeed) SetMinifluxToken added in v0.4.1

func (f *TerminalFeed) SetMinifluxToken(token string) error

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) SetTimeout added in v0.4.0

func (f *TerminalFeed) SetTimeout(timeout uint) error

func (*TerminalFeed) SetUserAgent added in v0.4.0

func (f *TerminalFeed) SetUserAgent(agent string) error

func (*TerminalFeed) SetVersion added in v0.4.0

func (f *TerminalFeed) SetVersion(version string)

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

func (*TerminalFeed) UpdateFutureItems added in v0.4.1

func (f *TerminalFeed) UpdateFutureItems(value uint8) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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