tui

package
v0.0.0-...-c7a2bae Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FastLineSpinner = spinner.Spinner{
		Frames: []string{"|", "/", "-", "\\"},
		FPS:    time.Second / 50,
	}
)

Functions

func FetchAndSortArticles

func FetchAndSortArticles(m model) ([]list.Item, error)

func NewModel

func NewModel(rssService *services.RSSService, articleService *services.ArticleService) (model, error)

func RefreshMsg

func RefreshMsg() tea.Cmd

Types

type ArticleInfo

type ArticleInfo struct {
	Title         string
	FeedName      string
	Authors       string
	URL           string
	PublishedTime *time.Time
	CleanedText   string
}

func (ArticleInfo) Render

func (a ArticleInfo) Render() string

type RefreshDone

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

type StartRefresh

type StartRefresh struct{}

type ViewMode

type ViewMode int
const (
	FeedView ViewMode = iota
	ArticleView
)

Jump to

Keyboard shortcuts

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