2 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
2 changed files with 2 additions and 0 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

@@ -6,6 +6,7 @@ type Subscribe struct {
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"`