updated
This commit is contained in:
@@ -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{
|
||||
|
Reference in New Issue
Block a user