20 lines
264 B
Go
20 lines
264 B
Go
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
|
|
}
|