Initial dashboard
This commit is contained in:
parent
1c697a028b
commit
1af3f59b1a
10 changed files with 380 additions and 3 deletions
20
dashboard.go
Normal file
20
dashboard.go
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
package main
|
||||
|
||||
type WidgetType int
|
||||
|
||||
const (
|
||||
WidgetLabel WidgetType = iota
|
||||
WidgetOnOff
|
||||
)
|
||||
|
||||
type Widget struct {
|
||||
Type WidgetType
|
||||
X int
|
||||
Y int
|
||||
DatapointID int
|
||||
Attributes map[string]string
|
||||
}
|
||||
|
||||
type Dashboard struct {
|
||||
Widgets []Widget
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue