Versions in this module Expand all Collapse all v0 v0.0.2 Jul 17, 2021 Changes in this version type Root + IdNodeMap map[string]Node v0.0.1 Jul 16, 2021 Changes in this version + const CommandDiscoveryRequest + const CommandDiscoveryResponse + const CommandProbeQueryRequest + const CommandProbeQueryResponse + const CommandProbeSetRequest + const CommandProbeSetResponse + const CommandProbeVersion + const CommandQueryRequest + const CommandQueryResponse + const CommandRegisterRequest + const CommandSample + const CommandSetRequest + const CommandSetResponse + const NG + const OK + const OP_get_attributes + const OP_get_keys + const OP_get_length + const OP_get_value + const OP_set_add + const OP_set_delelte + const OP_set_value + const Reason_Debied + const Reason_Id_Not_Exists + const Reason_No_Memory + const Reason_Not_Match + const Reason_Unspported_Operation + var DefaultModel = []byte(...) + type BaseCommand struct + Code string + CommandID string + Reason string + type BaseContainerNode struct + Components []Component + Configs []Config + DataItems []DataItem + func (_this *BaseContainerNode) NodeComponents() []Component + func (_this *BaseContainerNode) NodeConfigs() []Config + func (_this *BaseContainerNode) NodeDataItems() []DataItem + type BaseLeafNode struct + Settable bool + Source string + Units string + Value interface{} + type BaseNode struct + DataType string + Description string + ID string + Name string + Number string + Path string + Type string + func (_this *BaseNode) NodeDataType() string + func (_this *BaseNode) NodeDescription() string + func (_this *BaseNode) NodeID() string + func (_this *BaseNode) NodeName() string + func (_this *BaseNode) NodeNumber() string + func (_this *BaseNode) NodePath() string + func (_this *BaseNode) NodeType() string + func (_this *BaseNode) SetNodePath(path string) + type CommandItem struct + ID string + Node Node + type CommandParameter struct + Length *int + Offset *int + Operation string + type Component struct + type Config struct + SampleInterval uint16 + SampleItems []SampleItem + UploadInterval uint16 + type ContainerNode interface + NodeComponents func() []Component + NodeConfigs func() []Config + NodeDataItems func() []DataItem + type DataItem struct + type Device struct + GUID string + SampleTasks []SampleTask + Version string + type DiscoveryRequest struct + type DiscoveryResponse struct + Deviceids []string + type Node interface + NodeDataType func() string + NodeDescription func() string + NodeID func() string + NodeName func() string + NodeNumber func() string + NodePath func() string + NodeType func() string + SetNodePath func(path string) + type ProbeQueryRequest struct + type ProbeQueryResponse struct + Probe string + type ProbeSetRequest struct + Probe string + type ProbeSetResponse struct + type ProbeVersion struct + Version string + type QueryItem struct + Params *QueryParameter + Values []interface{} + type QueryParameter struct + Indexes []string + Keys []string + Values []interface{} + type QueryRequest struct + Ids []QueryItem + type QueryResponse struct + Values []QueryItem + type RegisterRequest struct + Device string + type Root struct + Devices []Device + func NewModel(modelText []byte) *Root + type SampleData struct + BeginTime int64 + Data []SampleDataItem + ID string + type SampleDataItem struct + Data []interface{} + type SampleItem struct + type SampleTask struct + CurTime int64 + ID string + SampleInterval uint16 + SampleItems []SampleItem + UploadInterval uint16 + type SetItem struct + Params SetParameter + type SetParameter struct + Index *int + Key string + Value interface{} + type SetRequest struct + Values []SetItem + type SetResponse struct + Results []SetItem