Documentation ¶
Index ¶
- Variables
- func LoadSt()
- func NewCoAPInEndSource(e typex.RuleX) typex.XSource
- func NewGrpcInEndSource(e typex.RuleX) typex.XSource
- func NewHttpInEndSource(e typex.RuleX) typex.XSource
- func NewIoTHubSource(e typex.RuleX) typex.XSource
- func NewMqttInEndSource(e typex.RuleX) typex.XSource
- func NewNatsSource(e typex.RuleX) typex.XSource
- func NewUdpInEndSource(e typex.RuleX) typex.XSource
- type IotHUBTopologyDevice
- type IotHUBTopologyDownMsg
- type IotHUBTopologyPayload
- type RulexRpcServer
- type TopologyDevice
- type TopologyDownMsg
- type TopologyPayload
Constants ¶
This section is empty.
Variables ¶
View Source
var SM typex.SourceRegistry = core.NewSourceTypeManager()
Functions ¶
Types ¶
type IotHUBTopologyDevice ¶ added in v0.5.2
type IotHUBTopologyDevice struct { ProductID string `json:"productID"` DeviceName string `json:"deviceName"` }
* * 下发拓扑结构 *
{ "method":"describesubDevices", "clientToken":"3160be0b-6d4f-e6fa-d614-8fb422c0d16c", "timestamp":1681625336600, "status":"成功", "payload":{ "devices":[ { "productID":"268dGhSTdOE", "deviceName":"RULEX-大屏1" } ] } }
func (IotHUBTopologyDevice) OfflineTopic ¶ added in v0.5.2
func (tt IotHUBTopologyDevice) OfflineTopic() string
$thing/status/${productid}/${devicename}
func (IotHUBTopologyDevice) OnlineTopic ¶ added in v0.5.2
func (tt IotHUBTopologyDevice) OnlineTopic() string
$thing/status/${productid}/${devicename}
func (IotHUBTopologyDevice) ReportTopic ¶ added in v0.5.2
func (tt IotHUBTopologyDevice) ReportTopic() string
$thing/up/property/{ProductID}/{DeviceName}
type IotHUBTopologyDownMsg ¶ added in v0.5.2
type IotHUBTopologyDownMsg struct { Method string `json:"method"` ClientToken string `json:"clientToken"` Timestamp int64 `json:"timestamp"` Status string `json:"status"` Payload TopologyPayload `json:"payload"` }
type IotHUBTopologyPayload ¶ added in v0.5.2
type IotHUBTopologyPayload struct {
Devices []IotHUBTopologyDevice `json:"devices"`
}
type RulexRpcServer ¶
type RulexRpcServer struct { rulexrpc.UnimplementedRulexRpcServer // contains filtered or unexported fields }
type TopologyDevice ¶
type TopologyDevice struct { ProductID string `json:"productID"` DeviceName string `json:"deviceName"` }
* * 下发拓扑结构 *
{ "method":"describesubDevices", "clientToken":"3160be0b-6d4f-e6fa-d614-8fb422c0d16c", "timestamp":1681625336600, "status":"成功", "payload":{ "devices":[ { "productID":"268dGhSTdOE", "deviceName":"RULEX-大屏1" } ] } }
func (TopologyDevice) OfflineTopic ¶
func (tt TopologyDevice) OfflineTopic() string
$thing/status/${productid}/${devicename}
func (TopologyDevice) OnlineTopic ¶
func (tt TopologyDevice) OnlineTopic() string
$thing/status/${productid}/${devicename}
func (TopologyDevice) ReportTopic ¶
func (tt TopologyDevice) ReportTopic() string
$thing/up/property/{ProductID}/{DeviceName}
type TopologyDownMsg ¶
type TopologyDownMsg struct { Method string `json:"method"` ClientToken string `json:"clientToken"` Timestamp int64 `json:"timestamp"` Status string `json:"status"` Payload TopologyPayload `json:"payload"` }
type TopologyPayload ¶
type TopologyPayload struct {
Devices []TopologyDevice `json:"devices"`
}
Click to show internal directories.
Click to hide internal directories.