ui

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	HelpPageId        string = "help"
	ActivityPageId    string = "activity"
	TransactionPageId string = "xact"
	IOPageId          string = "io"
	MemPageId         string = "mem"
	DiskPageId        string = "disk"
	InfoPageId        string = "info"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

func New

func New(db *db.DbConnection) *App

func (App) AddPage

func (a App) AddPage(page Page)

func (*App) BuildLayout

func (a *App) BuildLayout()

func (App) Run

func (a App) Run()

type Page

type Page struct {
	Title          string
	HotKeySelector tcell.Key
	Content        *tview.Box
}

type Status

type Status int
const (
	ConnectingStatus  Status = 0
	ConnectedStatus   Status = iota
	DisconectedStatus Status = iota
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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