2 Commits

Author SHA1 Message Date
Adrian Zürcher
9d4d417856 fix typo 2025-06-19 18:49:35 +02:00
Adrian Zürcher
0446a160e1 add parameter haschild 2025-05-13 21:16:30 +02:00
2 changed files with 9 additions and 8 deletions

View File

@@ -4,13 +4,14 @@ import "github.com/google/uuid"
// Get model // Get model
type Get struct { type Get struct {
Uuid uuid.UUID `json:"uuid"` // universally unique identifier Uuid uuid.UUID `json:"uuid"` // universally unique identifier
Path string `json:"path"` // dbm path Path string `json:"path"` // dbm path
Query *Query `json:"query,omitempty"` // query paramater Query *Query `json:"query,omitempty"` // query paramater
Drivers *Drivers `json:"driver,omitempty"` // assigned drivers Drivers *Drivers `json:"driver,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 HasChild bool `json:"hasChild,omitempty"` // inidicates path has child/ren
Rights Rights `json:"rights,omitempty"` // dbm read /write rights
} }
// search dbm datapoints by path // search dbm datapoints by path

View File

@@ -49,7 +49,7 @@ func (r *Response) AddUnsubscription(sub Subscription) {
} }
// Add new data publish to response // Add new data publish to response
func (r *Response) AddUPublish(pub Publish) { func (r *Response) AddPublish(pub Publish) {
r.Publish = append(r.Publish, pub) r.Publish = append(r.Publish, pub)
} }