ui

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Gradient

func Gradient(value float64, maximum float64, length int) string

Types

type Application

type Application interface {
	QueueUpdateDraw(func()) *tview.Application
}

type RefreshingTable

type RefreshingTable struct {
	*tview.Table
	*discover.Path
}

func NewRefreshingTable added in v0.3.0

func NewRefreshingTable(target string, path *discover.Path) *RefreshingTable

func (*RefreshingTable) Refresh

func (t *RefreshingTable) Refresh()

type UI

type UI struct {
	Root      *tview.Grid
	LogViewer *tview.TextView
	*RefreshingTable
}

func New

func New(target string, path *discover.Path, viewLogs bool) *UI

func (*UI) Update

func (u *UI) Update(ctx context.Context, app Application, interval time.Duration)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳