diff --git a/models/get.go b/models/get.go index 73ee978..3d387b7 100644 --- a/models/get.go +++ b/models/get.go @@ -10,7 +10,7 @@ type Get struct { Drivers *Drivers `json:"drivers,omitempty"` // assigned drivers Type Type `json:"type,omitempty"` // dbm datatype Value any `json:"value,omitempty"` // dbm value - HasChild bool `json:"hasChild,omitempty"` // inidicates path has child/ren + HasChild bool `json:"hasChild,omitempty"` // inidicates path has children Rights Rights `json:"rights,omitempty"` // dbm read /write rights } diff --git a/models/set.go b/models/set.go index 04aeb8d..7ed92c6 100644 --- a/models/set.go +++ b/models/set.go @@ -4,16 +4,16 @@ import "github.com/google/uuid" // Set model type Set struct { - Uuid uuid.UUID `json:"uuid,omitempty"` // universally unique identifier - Path string `json:"path"` // dbm path - Driver *Driver `json:"driver,omitempty"` // assign new driver - Drivers *Drivers `json:"drivers,omitempty"` // assigned drivers - Type Type `json:"type,omitempty"` // dbm datatype - Value any `json:"value,omitempty"` // dbm value - Rights Rights `json:"rights,omitempty"` // dbm read /write rights - Create bool `json:"create,omitempty"` // dbm create new datapoint - Rename bool `json:"rename,omitempty"` - Updated bool `json:"-"` + Uuid uuid.UUID `json:"uuid,omitempty"` // universally unique identifier + Path string `json:"path"` // dbm path + Driver *Driver `json:"driver,omitempty"` // assign new driver + Drivers *Drivers `json:"drivers,omitempty"` // assigned drivers + Type Type `json:"type,omitempty"` // dbm datatype + Value any `json:"value,omitempty"` // dbm value + Rights Rights `json:"rights,omitempty"` // dbm read /write rights + Create bool `json:"create,omitempty"` // dbm create new datapoint + HasChild bool `json:"hasChild,omitempty"` // inidicates path has children + Updated bool `json:"-"` } // sets value and path diff --git a/models/subscription.go b/models/subscription.go index f5309ee..4c274d1 100644 --- a/models/subscription.go +++ b/models/subscription.go @@ -9,7 +9,7 @@ type Subscription struct { Depth uint `json:"depth,omitempty"` // depth of subscriptions from found path or uuid Value any `json:"value,omitempty"` // current value Rights Rights `json:"rights,omitempty"` // read /write rights - HasChild bool `json:"hasChild,omitempty"` // inidicates path has child/ren + HasChild bool `json:"hasChild,omitempty"` // inidicates path has children Drivers *Drivers `json:"drivers,omitempty"` // assigned drivers Driver string `json:"driver,omitempty"` // driver type to assign this subscription OnCreate bool `json:"onCreate,omitempty"` // notify at datapoint creation