Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2d6db85b8c | ||
|
|
8e742ba1d3 | ||
|
|
2dc3baca3c |
@@ -10,7 +10,7 @@ type Get struct {
|
|||||||
Drivers *Drivers `json:"drivers,omitempty"` // assigned drivers
|
Drivers *Drivers `json:"drivers,omitempty"` // assigned drivers
|
||||||
Type Type `json:"type,omitempty"` // dbm datatype
|
Type Type `json:"type,omitempty"` // dbm datatype
|
||||||
Value any `json:"value,omitempty"` // dbm value
|
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
|
Rights Rights `json:"rights,omitempty"` // dbm read /write rights
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -4,15 +4,16 @@ import "github.com/google/uuid"
|
|||||||
|
|
||||||
// Set model
|
// Set model
|
||||||
type Set struct {
|
type Set struct {
|
||||||
Uuid uuid.UUID `json:"uuid,omitempty"` // universally unique identifier
|
Uuid uuid.UUID `json:"uuid,omitempty"` // universally unique identifier
|
||||||
Path string `json:"path"` // dbm path
|
Path string `json:"path"` // dbm path
|
||||||
Driver *Driver `json:"driver,omitempty"` // assign new driver
|
Driver *Driver `json:"driver,omitempty"` // assign new driver
|
||||||
Drivers *Drivers `json:"drivers,omitempty"` // assigned drivers
|
Drivers *Drivers `json:"drivers,omitempty"` // assigned drivers
|
||||||
Type Type `json:"type,omitempty"` // dbm datatype
|
Type Type `json:"type,omitempty"` // dbm datatype
|
||||||
Value any `json:"value,omitempty"` // dbm value
|
Value any `json:"value,omitempty"` // dbm value
|
||||||
Rights Rights `json:"rights,omitempty"` // dbm read /write rights
|
Rights Rights `json:"rights,omitempty"` // dbm read /write rights
|
||||||
Create bool `json:"create,omitempty"` // dbm create new datapoint
|
Create bool `json:"create,omitempty"` // dbm create new datapoint
|
||||||
Updated bool `json:"-"`
|
HasChild bool `json:"hasChild,omitempty"` // inidicates path has children
|
||||||
|
Updated bool `json:"-"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// sets value and path
|
// sets value and path
|
||||||
|
|||||||
@@ -8,7 +8,8 @@ type Subscription struct {
|
|||||||
Path string `json:"path,omitempty"` // dbm path
|
Path string `json:"path,omitempty"` // dbm path
|
||||||
Depth uint `json:"depth,omitempty"` // depth of subscriptions from found path or uuid
|
Depth uint `json:"depth,omitempty"` // depth of subscriptions from found path or uuid
|
||||||
Value any `json:"value,omitempty"` // current value
|
Value any `json:"value,omitempty"` // current value
|
||||||
HasChild bool `json:"hasChild,omitempty"` // inidicates path has child/ren
|
Rights Rights `json:"rights,omitempty"` // read /write rights
|
||||||
|
HasChild bool `json:"hasChild,omitempty"` // inidicates path has children
|
||||||
Drivers *Drivers `json:"drivers,omitempty"` // assigned drivers
|
Drivers *Drivers `json:"drivers,omitempty"` // assigned drivers
|
||||||
Driver string `json:"driver,omitempty"` // driver type to assign this subscription
|
Driver string `json:"driver,omitempty"` // driver type to assign this subscription
|
||||||
OnCreate bool `json:"onCreate,omitempty"` // notify at datapoint creation
|
OnCreate bool `json:"onCreate,omitempty"` // notify at datapoint creation
|
||||||
|
|||||||
Reference in New Issue
Block a user