Documentation ¶
Index ¶
- Constants
- func Render(box Box)
- type App
- type BarChartWidget
- func (bc *BarChartWidget) Add(label string, freq int)
- func (bc *BarChartWidget) Buffer() []termui.Point
- func (bc *BarChartWidget) SetHeight(h int)
- func (bc *BarChartWidget) SetWidth(w int)
- func (bc *BarChartWidget) SetX(x int)
- func (bc *BarChartWidget) SetY(y int)
- func (bc *BarChartWidget) Update(labels []string, freqs []int)
- type Box
- type BoxBase
- type CDFPanel
- type CounterPanel
- type HBox
- type LayoutBox
- type LayoutBoxBase
- type LineChartPanel
- type LineChartWidget
- func (lc *LineChartWidget) Add(x float64, dataLabel string)
- func (lc *LineChartWidget) Buffer() []termui.Point
- func (lc *LineChartWidget) Clear()
- func (lc *LineChartWidget) SetHeight(h int)
- func (lc *LineChartWidget) SetWidth(w int)
- func (lc *LineChartWidget) SetX(x int)
- func (lc *LineChartWidget) SetY(y int)
- func (lc *LineChartWidget) Update(xs []float64, dataLabels []string)
- type ListWidget
- type Panel
- type PanelBase
- type ParWidget
- type VBox
- type Widget
- type WidgetBox
Constants ¶
View Source
const ( LINE = iota COUNTER CDF )
panel types
View Source
const ( SORT_NONE = iota SORT_ALPHABETICAL SORT_NUMERICAL )
sort mode of counter panel
View Source
const ( HISTOGRAM_BIN_COUNT = 50 LIST_WIDTH = 30 BUFFER_SIZE = 1000 )
panel parameters
Variables ¶
This section is empty.
Functions ¶
Types ¶
type App ¶
type App struct { *VBox // contains filtered or unexported fields }
type BarChartWidget ¶
type BarChartWidget struct {
BarChart *termui.BarChart
}
func NewBarChartWidget ¶
func NewBarChartWidget() *BarChartWidget
func (*BarChartWidget) Add ¶
func (bc *BarChartWidget) Add(label string, freq int)
func (*BarChartWidget) Buffer ¶
func (bc *BarChartWidget) Buffer() []termui.Point
func (*BarChartWidget) SetHeight ¶
func (bc *BarChartWidget) SetHeight(h int)
func (*BarChartWidget) SetWidth ¶
func (bc *BarChartWidget) SetWidth(w int)
func (*BarChartWidget) SetX ¶
func (bc *BarChartWidget) SetX(x int)
func (*BarChartWidget) SetY ¶
func (bc *BarChartWidget) SetY(y int)
func (*BarChartWidget) Update ¶
func (bc *BarChartWidget) Update(labels []string, freqs []int)
type CDFPanel ¶
type CDFPanel struct { *PanelBase // contains filtered or unexported fields }
func NewCDFPanel ¶
type CounterPanel ¶
type CounterPanel struct { *PanelBase // contains filtered or unexported fields }
func NewCounterPanel ¶
func NewCounterPanel(label string) *CounterPanel
func (*CounterPanel) Add ¶
func (p *CounterPanel) Add(label string)
func (*CounterPanel) AddLabel ¶
func (p *CounterPanel) AddLabel(label string)
func (*CounterPanel) SetSortMode ¶
func (p *CounterPanel) SetSortMode(mode int)
type HBox ¶
type HBox struct {
LayoutBoxBase
}
type LayoutBoxBase ¶
type LayoutBoxBase struct { BoxBase // contains filtered or unexported fields }
func (*LayoutBoxBase) AddBoxes ¶
func (lb *LayoutBoxBase) AddBoxes(boxes ...Box)
func (*LayoutBoxBase) Bufferers ¶
func (lb *LayoutBoxBase) Bufferers() []termui.Bufferer
type LineChartPanel ¶
type LineChartPanel struct { *PanelBase // contains filtered or unexported fields }
func NewLineChartPanel ¶
func NewLineChartPanel(label string) *LineChartPanel
func (*LineChartPanel) Add ¶
func (p *LineChartPanel) Add(x float64, dataLabel string)
func (*LineChartPanel) SetMode ¶
func (p *LineChartPanel) SetMode(mode string)
func (*LineChartPanel) Update ¶
func (p *LineChartPanel) Update()
type LineChartWidget ¶
type LineChartWidget struct { Data *float64RingBuffer DataLabels *stringRingBuffer Mode string LineChart *termui.LineChart }
func NewLineChartWidget ¶
func NewLineChartWidget(bufsize int) *LineChartWidget
func (*LineChartWidget) Add ¶
func (lc *LineChartWidget) Add(x float64, dataLabel string)
func (*LineChartWidget) Buffer ¶
func (lc *LineChartWidget) Buffer() []termui.Point
func (*LineChartWidget) Clear ¶
func (lc *LineChartWidget) Clear()
func (*LineChartWidget) SetHeight ¶
func (lc *LineChartWidget) SetHeight(h int)
func (*LineChartWidget) SetWidth ¶
func (lc *LineChartWidget) SetWidth(w int)
func (*LineChartWidget) SetX ¶
func (lc *LineChartWidget) SetX(x int)
func (*LineChartWidget) SetY ¶
func (lc *LineChartWidget) SetY(y int)
func (*LineChartWidget) Update ¶
func (lc *LineChartWidget) Update(xs []float64, dataLabels []string)
type ListWidget ¶
type ListWidget struct {
List *termui.List
}
func NewListWidget ¶
func NewListWidget() *ListWidget
func (*ListWidget) Add ¶
func (ls *ListWidget) Add(items ...string)
func (*ListWidget) Buffer ¶
func (ls *ListWidget) Buffer() []termui.Point
func (*ListWidget) SetHeight ¶
func (ls *ListWidget) SetHeight(h int)
func (*ListWidget) SetWidth ¶
func (ls *ListWidget) SetWidth(w int)
func (*ListWidget) SetX ¶
func (ls *ListWidget) SetX(x int)
func (*ListWidget) SetY ¶
func (ls *ListWidget) SetY(y int)
func (*ListWidget) Update ¶
func (ls *ListWidget) Update(items []string)
type PanelBase ¶
type PanelBase struct { *HBox // contains filtered or unexported fields }
func NewPanelBase ¶
type ParWidget ¶
type ParWidget struct {
Par *termui.Par
}
func NewParWidget ¶
func NewParWidget() *ParWidget
type VBox ¶
type VBox struct {
LayoutBoxBase
}
type WidgetBox ¶
func NewWidgetBox ¶
func NewWidgetBox() *WidgetBox
Source Files ¶
Click to show internal directories.
Click to hide internal directories.