Documentation
¶
Index ¶
Constants ¶
View Source
const ( KBD_Q = 1 KBD_T = 2 KBD_Y = 3 KBD_SPACE = 4 KBD_N = 5 TIME = 6 RESIZE = 7 )
Keybaord consts
Variables ¶
This section is empty.
Functions ¶
func DebounceChan ¶
DebounceChan is a simple debouncer using channels that will grab the last message after the timeout.
Types ¶
type Column ¶
type Column struct { Height int `json:"height"` Span int `json:"span"` Offset int `json:"offset"` P *P `json:"p,omitempty"` TimeP *TP.TimeP `json:"timep,omitempty"` SparkLines *SL.SparkLines `json:"sparklines,omitempty"` BarChart *BC.BarChart `json:"barchart,omitempty"` Gauge *G.Gauge `json:"gauge,omitempty"` MultiSpark *MS.MultiSpark `json:"multispark,omitempty"` Loading *LD.Loading `json:"loading,omitempty"` // contains filtered or unexported fields }
type Dashboard ¶
type Dashboard struct { Rows []*Row `json:"rows"` Time *TS.TimeSelect `json:"-"` //TODO: Remove this?? It's in monitor shouldn't be in 2 places Grid *ui.Grid `json:"-"` //json:"-" omits a field from being encoded // contains filtered or unexported fields }
func NewDashboard ¶
func NewDashboardFromFile ¶
Dashboard get dash from path.
func (*Dashboard) Create ¶
func (d *Dashboard) Create()
Create builds the dashboard from the json serialized structs.
func (*Dashboard) UpdateAll ¶
func (d *Dashboard) UpdateAll(time *TS.TimeSelect)
UpdateAll updates all of our stat widgets.
type Event ¶
type Event struct { Type int Time *TS.TimeSelect Dash Stats Monitor *Monitor }
Event are the events sent to the commandQ.
type Monitor ¶
type Monitor struct { Dashes []Stats // contains filtered or unexported fields }
Monitor is the main struct to monitor the dashboards.
func NewMonitor ¶
NewMonitor creates a new monitor struct that can display dashboards.
Click to show internal directories.
Click to hide internal directories.