4 Commits

Author SHA1 Message Date
Adrian Zürcher
72d0d56868 add type for type conversion 2025-04-29 08:16:45 +02:00
Adrian Zürcher
ea4461fd7e add value to subscribtion 2025-04-29 07:57:43 +02:00
Adrian Zürcher
0f22443b93 add uuid to struct 2025-04-28 07:05:50 +02:00
Adrian Zürcher
0d3161337f change datatype 2025-04-27 16:09:38 +02:00
3 changed files with 13 additions and 8 deletions

View File

@@ -6,5 +6,6 @@ type Publish struct {
Event string `json:"event,omitempty"`
Uuid uuid.UUID `json:"uuid,omitempty"`
Path string `json:"path,omitempty"`
Type Type `json:"type,omitempty"`
Value any `json:"value,omitempty"`
}

View File

@@ -1,6 +1,6 @@
package models
type Query struct {
Depth int `json:"depth,omitempty"`
Depth uint `json:"depth,omitempty"`
RegExp string `json:"regExp,omitempty"`
}

View File

@@ -1,8 +1,12 @@
package models
import "github.com/google/uuid"
type Subscribe struct {
Path string `json:"path"`
Uuid uuid.UUID `json:"uuid,omitempty"`
Path string `json:"path,omitempty"`
Depth uint `json:"depth,omitempty"`
Value any `json:"value,omitempty"`
Drivers *Drivers `json:"drivers,omitempty"`
Driver string `json:"driver,omitempty"`
OnCreate bool `json:"onCreate,omitempty"`