mirror of
https://gitlab1.ptb.de/waltem01/Matrix
synced 2024-12-26 03:51:45 +00:00
47 lines
587 B
Go
47 lines
587 B
Go
package main
|
|
|
|
import (
|
|
"errors"
|
|
"fmt"
|
|
"log"
|
|
"os"
|
|
"strconv"
|
|
|
|
"github.com/go-resty/resty/v2"
|
|
"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() {
|
|
}
|