Documentation ¶
Index ¶
- Variables
- func CellNameStrings() []string
- func DashboardLoadingBlinkValue() string
- func NewColumn(width int, elements ...grid.Element) grid.Element
- func NewColumnPct(width int, elements ...grid.Element) grid.Element
- func NewRowPct(height int, elements ...grid.Element) grid.Element
- type Cell
- type CellName
- type Column
- type DonutWriteInput
- type Element
- type Row
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DashboardConfigSUI = []container.Option{ container.Border(linestyle.Light), container.BorderColor(cell.ColorGreen), container.FocusedColor(cell.ColorGreen), container.AlignHorizontal(align.HorizontalCenter), container.AlignVertical(align.VerticalMiddle), container.BorderTitle(dashboardName), container.Focused(), } Rows = []grid.Element{ 0: NewRowPct(12, Columns[CellNameNodeStatus], Columns[CellNameNetworkStatus], Columns[CellNameCurrentEpoch], Columns[CellNameEpochEnd], Columns[CellNameConnectedPeers], Columns[CellNameVersion], Columns[CellNameCommit], ), 1: NewRowPct(12, Columns[CellNameUptime], Columns[CellNameTotalTransactions], Columns[CellNameLatestCheckpoint], Columns[CellNameHighestCheckpoint], ), 2: NewRowPct(12, Columns[CellNameBytesSent], Columns[CellNameBytesReceived], Columns[CellNameTransactionsPerSecond], Columns[CellNameCheckpointsPerSecond], Columns[CellNameDatabaseSize], ), 3: NewRowPct(50, NewColumnPct(40, NewRowPct(50, Columns[CellNameEpochProgress], Columns[CellNameDiskUsage], ), NewRowPct(50, Columns[CellNameCpuUsage], Columns[CellNameMemoryUsage], ), ), NewColumnPct(60, NewRowPct(15, Columns[CellNameTXSyncProgress], Columns[CellNameCheckSyncProgress], ), NewRowPct(20, Columns[CellNameTPSTracker]), NewRowPct(20, Columns[CellNameCPSTracker]), NewRowPct(45, Columns[CellNameNodeLogs]), ), ), } Columns = []grid.Element{ CellNameNodeStatus: NewColumnPct(5, Cells[CellNameNodeStatus].GetGridWidget()), CellNameNetworkStatus: NewColumnPct(5, Cells[CellNameNetworkStatus].GetGridWidget()), CellNameTransactionsPerSecond: NewColumnPct(16, Cells[CellNameTransactionsPerSecond].GetGridWidget()), CellNameCheckpointsPerSecond: NewColumnPct(15, Cells[CellNameCheckpointsPerSecond].GetGridWidget()), CellNameTotalTransactions: NewColumnPct(28, Cells[CellNameTotalTransactions].GetGridWidget()), CellNameLatestCheckpoint: NewColumnPct(28, Cells[CellNameLatestCheckpoint].GetGridWidget()), CellNameHighestCheckpoint: NewColumnPct(28, Cells[CellNameHighestCheckpoint].GetGridWidget()), CellNameConnectedPeers: NewColumnPct(10, Cells[CellNameConnectedPeers].GetGridWidget()), CellNameTXSyncProgress: NewColumnPct(50, Cells[CellNameTXSyncProgress].GetGridWidget()), CellNameCheckSyncProgress: NewColumnPct(50, Cells[CellNameCheckSyncProgress].GetGridWidget()), CellNameUptime: NewColumnPct(16, Cells[CellNameUptime].GetGridWidget()), CellNameVersion: NewColumnPct(21, Cells[CellNameVersion].GetGridWidget()), CellNameCommit: NewColumnPct(10, Cells[CellNameCommit].GetGridWidget()), CellNameCurrentEpoch: NewColumnPct(10, Cells[CellNameCurrentEpoch].GetGridWidget()), CellNameEpochProgress: NewColumnPct(50, Cells[CellNameEpochProgress].GetGridWidget()), CellNameEpochEnd: NewColumnPct(20, Cells[CellNameEpochEnd].GetGridWidget()), CellNameDiskUsage: NewColumnPct(50, Cells[CellNameDiskUsage].GetGridWidget()), CellNameDatabaseSize: NewColumnPct(20, Cells[CellNameDatabaseSize].GetGridWidget()), CellNameBytesSent: NewColumnPct(20, Cells[CellNameBytesSent].GetGridWidget()), CellNameBytesReceived: NewColumnPct(20, Cells[CellNameBytesReceived].GetGridWidget()), CellNameMemoryUsage: NewColumnPct(50, Cells[CellNameMemoryUsage].GetGridWidget()), CellNameCpuUsage: NewColumnPct(50, Cells[CellNameCpuUsage].GetGridWidget()), CellNameNodeLogs: NewColumnPct(50, Cells[CellNameNodeLogs].GetGridWidget()), CellNameButtonQuit: NewColumnPct(25, Cells[CellNameButtonQuit].GetGridWidget()), CellNameTPSTracker: NewColumnPct(99, Cells[CellNameTPSTracker].GetGridWidget()), CellNameCPSTracker: NewColumnPct(99, Cells[CellNameCPSTracker].GetGridWidget()), } Cells = []*Cell{ CellNameNodeStatus: NewCell(CellNameNodeStatus), CellNameNetworkStatus: NewCell(CellNameNetworkStatus), CellNameTransactionsPerSecond: NewCell(CellNameTransactionsPerSecond), CellNameCheckpointsPerSecond: NewCell(CellNameCheckpointsPerSecond), CellNameTotalTransactions: NewCell(CellNameTotalTransactions), CellNameLatestCheckpoint: NewCell(CellNameLatestCheckpoint), CellNameHighestCheckpoint: NewCell(CellNameHighestCheckpoint), CellNameConnectedPeers: NewCell(CellNameConnectedPeers), CellNameTXSyncProgress: NewCell(CellNameTXSyncProgress), CellNameCheckSyncProgress: NewCell(CellNameCheckSyncProgress), CellNameUptime: NewCell(CellNameUptime), CellNameVersion: NewCell(CellNameVersion), CellNameCommit: NewCell(CellNameCommit), CellNameCurrentEpoch: NewCell(CellNameCurrentEpoch), CellNameEpochProgress: NewCell(CellNameEpochProgress), CellNameEpochEnd: NewCell(CellNameEpochEnd), CellNameDiskUsage: NewCell(CellNameDiskUsage), CellNameDatabaseSize: NewCell(CellNameDatabaseSize), CellNameBytesSent: NewCell(CellNameBytesSent), CellNameBytesReceived: NewCell(CellNameBytesReceived), CellNameMemoryUsage: NewCell(CellNameMemoryUsage), CellNameCpuUsage: NewCell(CellNameCpuUsage), CellNameNodeLogs: NewCell(CellNameNodeLogs), CellNameButtonQuit: NewCell(CellNameButtonQuit), CellNameTPSTracker: NewCell(CellNameTPSTracker), CellNameCPSTracker: NewCell(CellNameCPSTracker), } )
Functions ¶
func CellNameStrings ¶
func CellNameStrings() []string
CellNameStrings returns a slice of all String values of the enum
func DashboardLoadingBlinkValue ¶
func DashboardLoadingBlinkValue() string
Types ¶
type Cell ¶
func (*Cell) GetGridWidget ¶
type CellName ¶
type CellName int
const ( CellNameNodeStatus CellName = iota CellNameNetworkStatus CellNameTransactionsPerSecond CellNameCheckpointsPerSecond CellNameTotalTransactions CellNameLatestCheckpoint CellNameHighestCheckpoint CellNameConnectedPeers CellNameTXSyncProgress CellNameCheckSyncProgress CellNameUptime CellNameVersion CellNameCommit CellNameCurrentEpoch CellNameEpochProgress CellNameEpochEnd CellNameDiskUsage CellNameDatabaseSize CellNameBytesSent CellNameBytesReceived CellNameMemoryUsage CellNameCpuUsage CellNameNodeLogs CellNameButtonQuit CellNameTPSTracker CellNameCPSTracker )
func CellNameString ¶
CellNameString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func CellNameValues ¶
func CellNameValues() []CellName
CellNameValues returns all values of the enum
func (CellName) CellNameString ¶
func (CellName) IsACellName ¶
IsACellName returns "true" if the value is listed in the enum definition. "false" otherwise
func (CellName) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface for CellName
func (*CellName) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface for CellName
type DonutWriteInput ¶
func NewDonutInput ¶
func NewDonutInput(label string, pct int) DonutWriteInput
Click to show internal directories.
Click to hide internal directories.