Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
83bf855485 | ||
|
|
9d4d417856 | ||
|
|
0446a160e1 | ||
|
|
640604c06d | ||
|
|
3accf6fc06 |
@@ -7,9 +7,10 @@ type Get struct {
|
||||
Uuid uuid.UUID `json:"uuid"` // universally unique identifier
|
||||
Path string `json:"path"` // dbm path
|
||||
Query *Query `json:"query,omitempty"` // query paramater
|
||||
Drivers *Drivers `json:"driver,omitempty"` // assigned drivers
|
||||
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
|
||||
Rights Rights `json:"rights,omitempty"` // dbm read /write rights
|
||||
}
|
||||
|
||||
|
||||
@@ -45,11 +45,11 @@ func (r *Response) AddSubscription(sub Subscription) {
|
||||
|
||||
// Add new unsubscribe to response collection
|
||||
func (r *Response) AddUnsubscription(sub Subscription) {
|
||||
r.Subscribe = append(r.Subscribe, sub)
|
||||
r.Unsubscribe = append(r.Unsubscribe, sub)
|
||||
}
|
||||
|
||||
// Add new data publish to response
|
||||
func (r *Response) AddUPublish(pub Publish) {
|
||||
func (r *Response) AddPublish(pub Publish) {
|
||||
r.Publish = append(r.Publish, pub)
|
||||
}
|
||||
|
||||
|
||||
@@ -11,6 +11,7 @@ type Set struct {
|
||||
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
|
||||
Updated bool `json:"-"`
|
||||
}
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@ type Subscription struct {
|
||||
Path string `json:"path,omitempty"` // dbm path
|
||||
Depth uint `json:"depth,omitempty"` // depth of subscriptions from found path or uuid
|
||||
Value any `json:"value,omitempty"` // current value
|
||||
HasChild bool `json:"hasChild,omitempty"` // inidicates path has child/ren
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user