views

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultRune   rune = '▣'
	ProgressRunes      = []rune{'䷁', '䷗', '䷒', '䷊', '䷡', '䷪', '䷀'}
)
View Source
var (
	MemLimit = uint64(0)
)

Functions

This section is empty.

Types

type ClusterView

type ClusterView struct {
	*ui.Canvas
	Cluster types.ClusterStats
	Cols    int
	Compact bool
	// contains filtered or unexported fields
}

func NewClusterComponent

func NewClusterComponent(dash DashControl) *ClusterView

func NewClusterView

func NewClusterView(dash DashControl, title string) *ClusterView

func (*ClusterView) Draw

func (v *ClusterView) Draw(buf *ui.Buffer)

func (*ClusterView) SetCell

func (v *ClusterView) SetCell(p image.Point, cell *drawille.Cell)

func (*ClusterView) SetRect

func (v *ClusterView) SetRect(x1, y1, x2, y2 int)

func (*ClusterView) Update

func (v *ClusterView) Update()

func (*ClusterView) UpdateInstance

func (v *ClusterView) UpdateInstance(idx int)

type DashControl

type DashControl interface {
	Quit(string)
	GetOccupancyMode() types.InstanceOccupancyMode
}

type GroupedClusterView

type GroupedClusterView struct {
	*ui.Block
	Views       []*ClusterView
	Cluster     types.GroupedClusterStats
	Cols        int
	ClusterCols int
	// contains filtered or unexported fields
}

func NewGroupedClusterView

func NewGroupedClusterView(dash DashControl, title string) *GroupedClusterView

func (*GroupedClusterView) Draw

func (v *GroupedClusterView) Draw(buf *ui.Buffer)

func (*GroupedClusterView) SetRect

func (v *GroupedClusterView) SetRect(x1, y1, x2, y2 int)

SetRect implements the Drawable interface.

func (*GroupedClusterView) Update

func (v *GroupedClusterView) Update()

type LogView

type LogView struct {
	*widgets.Paragraph
	// contains filtered or unexported fields
}

func NewLogView

func NewLogView(title string, logFile string) *LogView

func (*LogView) Draw

func (v *LogView) Draw(buf *ui.Buffer)

type StatusView

type StatusView struct {
	*widgets.Paragraph
	Meta types.MetaStoreStats
	// contains filtered or unexported fields
}

func NewStatusView

func NewStatusView(dash DashControl) *StatusView

func (*StatusView) Draw

func (v *StatusView) Draw(buf *ui.Buffer)

func (*StatusView) PersistCacheLen

func (v *StatusView) PersistCacheLen() int

PersistCacheLen implements dummy types.ServerStats interface.

func (*StatusView) SetServerStats

func (v *StatusView) SetServerStats(svrStats types.ServerStats)

SetServerStats provides the view with server stats.

Jump to

Keyboard shortcuts

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