streamtable

package
v0.6.9-alpha.11 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2023 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 StreamTable

type StreamTable struct {
	sync.Mutex
	*tview.Table

	TableHeader   [][]*tview.TableCell
	DataSource    StreamTableSource
	DataFormatter StreamTableFormatter
	// contains filtered or unexported fields
}

func NewStreamTable

func NewStreamTable(header [][]*tview.TableCell, source StreamTableSource, formatter StreamTableFormatter) *StreamTable

func (*StreamTable) StartStream

func (ST *StreamTable) StartStream()

func (*StreamTable) StopStream

func (ST *StreamTable) StopStream()

func (*StreamTable) UpdateData

func (ST *StreamTable) UpdateData(input interface{})

type StreamTableFormatter

type StreamTableFormatter func(interface{}) [][]*tview.TableCell

type StreamTableSource

type StreamTableSource func(chan string) chan interface{}

Jump to

Keyboard shortcuts

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