mirror of
https://gitlab1.ptb.de/waltem01/Matrix
synced 2024-12-26 03:51:45 +00:00
prepare matrix types and data
This commit is contained in:
parent
48998c352b
commit
aff5ec08bf
31
main.go
31
main.go
@ -11,5 +11,36 @@ import (
|
||||
"github.com/joho/godotenv"
|
||||
)
|
||||
|
||||
type Response struct {
|
||||
success bool
|
||||
}
|
||||
|
||||
type Endpoint string
|
||||
|
||||
const (
|
||||
RECTANGLE Endpoint = "rectangle"
|
||||
UPDATE Endpoint = "update"
|
||||
COLOR Endpoint = "color"
|
||||
)
|
||||
|
||||
type Update struct {
|
||||
endpoint Endpoint
|
||||
}
|
||||
|
||||
type Color struct {
|
||||
R int
|
||||
G int
|
||||
B int
|
||||
endpoint Endpoint
|
||||
}
|
||||
|
||||
type Rectangle struct {
|
||||
X int
|
||||
Y int
|
||||
W int
|
||||
H int
|
||||
endpoint Endpoint
|
||||
}
|
||||
|
||||
func main() {
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user