Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
72d0d56868 | ||
|
|
ea4461fd7e | ||
|
|
0f22443b93 |
@@ -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"`
|
||||
}
|
||||
|
||||
@@ -1,11 +1,15 @@
|
||||
package models
|
||||
|
||||
import "github.com/google/uuid"
|
||||
|
||||
type Subscribe struct {
|
||||
Path string `json:"path"`
|
||||
Depth uint `json:"depth,omitempty"`
|
||||
Drivers *Drivers `json:"drivers,omitempty"`
|
||||
Driver string `json:"driver,omitempty"`
|
||||
OnCreate bool `json:"onCreate,omitempty"`
|
||||
OnDelete bool `json:"onDelete,omitempty"`
|
||||
OnChange bool `json:"onChange,omitempty"`
|
||||
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"`
|
||||
OnDelete bool `json:"onDelete,omitempty"`
|
||||
OnChange bool `json:"onChange,omitempty"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user