Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
83bf855485 | ||
|
|
9d4d417856 | ||
|
|
0446a160e1 |
@@ -4,13 +4,14 @@ import "github.com/google/uuid"
|
||||
|
||||
// Get model
|
||||
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
|
||||
Type Type `json:"type,omitempty"` // dbm datatype
|
||||
Value any `json:"value,omitempty"` // dbm value
|
||||
Rights Rights `json:"rights,omitempty"` // dbm read /write rights
|
||||
Uuid uuid.UUID `json:"uuid"` // universally unique identifier
|
||||
Path string `json:"path"` // dbm path
|
||||
Query *Query `json:"query,omitempty"` // query paramater
|
||||
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
|
||||
}
|
||||
|
||||
// search dbm datapoints by path
|
||||
|
||||
@@ -49,7 +49,7 @@ func (r *Response) AddUnsubscription(sub Subscription) {
|
||||
}
|
||||
|
||||
// Add new data publish to response
|
||||
func (r *Response) AddUPublish(pub Publish) {
|
||||
func (r *Response) AddPublish(pub Publish) {
|
||||
r.Publish = append(r.Publish, pub)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user