tui

package
v0.1.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DemoScreen

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

func NewDemoScreen

func NewDemoScreen() *DemoScreen

func (*DemoScreen) AddMenuItem

func (s *DemoScreen) AddMenuItem(id, label string, action MenuAction) *DemoScreen

func (*DemoScreen) AddStatusItem

func (s *DemoScreen) AddStatusItem(id, label string) *DemoScreen

func (*DemoScreen) AddStreamPair

func (s *DemoScreen) AddStreamPair(title string, stdout, stderr <-chan string)

func (*DemoScreen) Run

func (s *DemoScreen) Run() error

func (*DemoScreen) Stop

func (s *DemoScreen) Stop()

func (*DemoScreen) UpdateStatusItem

func (s *DemoScreen) UpdateStatusItem(id, msg string, ok bool) *DemoScreen
type MenuAction func()

type Severity

type Severity int
const (
	Unknown Severity = iota
	Refresh
	Healthy
	Warning
	Alert
)

type StackedTextViews

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

func NewStackedTextViews

func NewStackedTextViews() *StackedTextViews

func (*StackedTextViews) AddStatusItem

func (s *StackedTextViews) AddStatusItem(label string, updates <-chan *Status) *StackedTextViews

func (*StackedTextViews) AddStdView

func (s *StackedTextViews) AddStdView(
	label string, stdout, stderr <-chan string, updates <-chan *Status,
) *StackedTextViews

func (*StackedTextViews) Run

func (s *StackedTextViews) Run() error

func (*StackedTextViews) Stop

func (s *StackedTextViews) Stop()

type Status

type Status struct {
	Severity Severity
	Message  string
}

Jump to

Keyboard shortcuts

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