initial commit lets start to have some fun

This commit is contained in:
Adrian Zuercher
2026-08-28 18:09:16 +02:00
commit 914fc7c5e9
9 changed files with 63 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
package schema
type Array struct {
Start int `json:"start"`
End int `json:"end"`
Values []any `json:"values"`
}
+7
View File
@@ -0,0 +1,7 @@
package schema
type Device struct {
Name string `json:"name"`
Tasks []*Task `json:"tasks"`
Globals []*Global `json:"globals"`
}
+6
View File
@@ -0,0 +1,6 @@
package schema
type Global struct {
Name string `json:"name"`
Variables []*Variable `json:"variables"`
}
+3
View File
@@ -0,0 +1,3 @@
module schema
go 1.26.4
+7
View File
@@ -0,0 +1,7 @@
package schema
type Information struct {
CompanyName string `json:"companyName"`
ProductName string `json:"productName"`
Version string `json:"version"`
}
+6
View File
@@ -0,0 +1,6 @@
package schema
type Program struct {
Name string `json:"name"`
TypeName string `json:"typeName"`
}
+9
View File
@@ -0,0 +1,9 @@
package schema
type Project struct {
ProjectName string `json:"projectName"`
Platform string `json:"platfrom"`
GenerateType int `json:"generateType"`
Information Information `json:"information"`
Devices []*Device `json:"devices"`
}
+10
View File
@@ -0,0 +1,10 @@
package schema
type Task struct {
Name string `json:"name"`
Interval int `json:"interval"`
IntervalUnit string `json:"intervalUnit"`
KindOfTask string `json:"kindOfTask"`
Priority int `json:"priority"`
Programs []*Program `json:"programs"`
}
+8
View File
@@ -0,0 +1,8 @@
package schema
type Variable struct {
Name string `json:"name"`
Type string `json:"type"`
Value any `json:"value,omitempty"`
Array *Array `json:"array,omitempty"`
}