ui

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Client         interfaces.Client
	Persist        bool
	DownloadFolder string
	Debug          bool
}

type Mode

type Mode int
const (
	List Mode = iota
	ShowDescription
	ShowFiles
	Search
)

type Model

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

func InitialModel

func InitialModel(query string, config Config) Model

func (*Model) GetContent

func (m *Model) GetContent() string

func (*Model) GetSearchContent

func (m *Model) GetSearchContent() string

func (*Model) GetTorrentFilesTable

func (m *Model) GetTorrentFilesTable() string

func (*Model) GetTorrentsTable

func (m *Model) GetTorrentsTable() string

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Update

func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (Model) View

func (m Model) View() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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