Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
72d0d56868 | ||
|
|
ea4461fd7e | ||
|
|
0f22443b93 | ||
|
|
0d3161337f |
@@ -6,5 +6,6 @@ type Publish struct {
|
|||||||
Event string `json:"event,omitempty"`
|
Event string `json:"event,omitempty"`
|
||||||
Uuid uuid.UUID `json:"uuid,omitempty"`
|
Uuid uuid.UUID `json:"uuid,omitempty"`
|
||||||
Path string `json:"path,omitempty"`
|
Path string `json:"path,omitempty"`
|
||||||
|
Type Type `json:"type,omitempty"`
|
||||||
Value any `json:"value,omitempty"`
|
Value any `json:"value,omitempty"`
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
package models
|
package models
|
||||||
|
|
||||||
type Query struct {
|
type Query struct {
|
||||||
Depth int `json:"depth,omitempty"`
|
Depth uint `json:"depth,omitempty"`
|
||||||
RegExp string `json:"regExp,omitempty"`
|
RegExp string `json:"regExp,omitempty"`
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,12 @@
|
|||||||
package models
|
package models
|
||||||
|
|
||||||
|
import "github.com/google/uuid"
|
||||||
|
|
||||||
type Subscribe struct {
|
type Subscribe struct {
|
||||||
Path string `json:"path"`
|
Uuid uuid.UUID `json:"uuid,omitempty"`
|
||||||
|
Path string `json:"path,omitempty"`
|
||||||
Depth uint `json:"depth,omitempty"`
|
Depth uint `json:"depth,omitempty"`
|
||||||
|
Value any `json:"value,omitempty"`
|
||||||
Drivers *Drivers `json:"drivers,omitempty"`
|
Drivers *Drivers `json:"drivers,omitempty"`
|
||||||
Driver string `json:"driver,omitempty"`
|
Driver string `json:"driver,omitempty"`
|
||||||
OnCreate bool `json:"onCreate,omitempty"`
|
OnCreate bool `json:"onCreate,omitempty"`
|
||||||
|
|||||||
Reference in New Issue
Block a user