-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathModule.go
More file actions
28 lines (26 loc) · 1.38 KB
/
Module.go
File metadata and controls
28 lines (26 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package api
type Module struct {
Name string `json:"name,omitempty"`
NewIcon func() IconHandler `json:"-"`
NewKey func() KeyHandler `json:"-"`
NewLcd func() LcdHandler `json:"-"`
NewKnobOrTouch func() KnobOrTouchHandler `json:"-"`
IconFields []Field `json:"icon_fields,omitempty"`
KeyFields []Field `json:"key_fields,omitempty"`
LcdFields []Field `json:"lcd_fields,omitempty"`
KnobOrTouchFields []Field `json:"knob_or_touch_fields,omitempty"`
LinkedFields []Field `json:"linked_fields,omitempty"`
IsIcon bool `json:"is_icon,omitempty"`
IsKey bool `json:"is_key,omitempty"`
IsLcd bool `json:"is_lcd,omitempty"`
IsKnob bool `json:"is_knob,omitempty"`
IsLinkedHandlers bool `json:"is_linked_handlers,omitempty"`
Linked bool `json:"linked,omitempty"`
}
type Field struct {
Title string `json:"title,omitempty"`
Name string `json:"name,omitempty"`
Type string `json:"type,omitempty"`
FileTypes []string `json:"file_types,omitempty"`
ListItems []string `json:"list_items,omitempty"`
}