internal

package
v0.0.0-...-afa9baf Latest Latest
Warning

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

Go to latest
Published: May 7, 2020 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(f string)

Types

type Client

type Client struct {
	Feeds []*Feed

	*sync.Mutex // protects Feeds, feedSelected, itemSelected
	// contains filtered or unexported fields
}

type Feed

type Feed struct {
	FeedLink    string
	Title       string
	Link        string
	Description string
	LastDate    string
	Items       []*Item
	// contains filtered or unexported fields
}

type Item

type Item struct {
	Title       string
	Link        string
	Author      string
	Description string
	Content     string
	PubDate     *time.Time
	Save        bool
	Read        bool
	// contains filtered or unexported fields
}

func (*Item) Discard

func (it *Item) Discard()

type Panel

type Panel int

type Route

type Route int

type State

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

type StyleList

type StyleList struct {
	Block
	Rows        []string
	WrapText    bool
	TextStyle   []Style
	SelectedRow int

	SelectedRowStyle Style
	// contains filtered or unexported fields
}

func NewStyleList

func NewStyleList() *StyleList

func (*StyleList) Draw

func (self *StyleList) Draw(buf *Buffer)

func (*StyleList) ScrollAmount

func (self *StyleList) ScrollAmount(amount int)

ScrollAmount scrolls by amount given. If amount is < 0, then scroll up. There is no need to set self.topRow, as this will be set automatically when drawn, since if the selected item is off screen then the topRow variable will change accordingly.

func (*StyleList) ScrollBottom

func (self *StyleList) ScrollBottom()

func (*StyleList) ScrollDown

func (self *StyleList) ScrollDown()

func (*StyleList) ScrollHalfPageDown

func (self *StyleList) ScrollHalfPageDown()

func (*StyleList) ScrollHalfPageUp

func (self *StyleList) ScrollHalfPageUp()

func (*StyleList) ScrollPageDown

func (self *StyleList) ScrollPageDown()

func (*StyleList) ScrollPageUp

func (self *StyleList) ScrollPageUp()

func (*StyleList) ScrollTop

func (self *StyleList) ScrollTop()

func (*StyleList) ScrollUp

func (self *StyleList) ScrollUp()

type Textbox

type Textbox struct {
	Block
	Text       string
	TextStyle  Style
	Top        int
	WrapText   bool
	Cursor     int
	ShowCursor bool
}

func NewTextbox

func NewTextbox() *Textbox

func (*Textbox) Draw

func (self *Textbox) Draw(buf *Buffer)

type Tui

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

Jump to

Keyboard shortcuts

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