This commit is contained in:
Adrian Zürcher
2025-04-29 09:16:27 +02:00
parent 2839b615c3
commit 83cbcdaa42
8 changed files with 207 additions and 164 deletions

View File

@@ -1,9 +1,8 @@
package server
import (
"fmt"
"artNet/cert"
"fmt"
"github.com/gin-gonic/gin"
)
@@ -12,6 +11,17 @@ type Server struct {
Routes *gin.Engine
}
type Send struct {
Set []Set `json:"subscribe"`
}
type Set struct {
Path string `json:"path"`
OnChange bool `json:"onChange"`
Depth int `json:"depth"`
Driver string `json:"driver"`
}
// Initialize new websocket server
func NewServer() *Server {
return &Server{