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) 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 ¶
func NewLogView ¶
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.
Click to show internal directories.
Click to hide internal directories.