Documentation ¶
Index ¶
- Variables
- func LoadSt()
- func NewCoAPInEndSource(e typex.RuleX) typex.XSource
- func NewGenericMqttSource(e typex.RuleX) typex.XSource
- func NewGrpcInEndSource(e typex.RuleX) typex.XSource
- func NewHttpInEndSource(e typex.RuleX) typex.XSource
- func NewInternalEventSource(r 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 InternalEventSource
- func (u *InternalEventSource) DataModels() []typex.XDataModel
- func (u *InternalEventSource) Details() *typex.InEnd
- func (*InternalEventSource) DownStream([]byte) (int, error)
- func (*InternalEventSource) Driver() typex.XExternalDriver
- func (u *InternalEventSource) Init(inEndId string, configMap map[string]interface{}) error
- func (u *InternalEventSource) Start(cctx typex.CCTX) error
- func (u *InternalEventSource) Status() typex.SourceState
- func (u *InternalEventSource) Stop()
- func (u *InternalEventSource) Test(inEndId string) bool
- func (*InternalEventSource) Topology() []typex.TopologyPoint
- func (*InternalEventSource) UpStream([]byte) (int, error)
- type IotHUBTopologyDevice
- type IotHUBTopologyDownMsg
- type IotHUBTopologyPayload
- type MqttMessage
- type RulexRpcServer
- type TopologyDevice
- type TopologyDownMsg
- type TopologyPayload
Constants ¶
This section is empty.
Variables ¶
View Source
var SM typex.SourceRegistry = core.NewSourceTypeManager()
Functions ¶
func NewInternalEventSource ¶ added in v0.6.5
Types ¶
type InternalEventSource ¶ added in v0.6.5
func (*InternalEventSource) DataModels ¶ added in v0.6.5
func (u *InternalEventSource) DataModels() []typex.XDataModel
func (*InternalEventSource) Details ¶ added in v0.6.5
func (u *InternalEventSource) Details() *typex.InEnd
func (*InternalEventSource) DownStream ¶ added in v0.6.5
func (*InternalEventSource) DownStream([]byte) (int, error)
来自外面的数据
func (*InternalEventSource) Driver ¶ added in v0.6.5
func (*InternalEventSource) Driver() typex.XExternalDriver
func (*InternalEventSource) Init ¶ added in v0.6.5
func (u *InternalEventSource) Init(inEndId string, configMap map[string]interface{}) error
func (*InternalEventSource) Start ¶ added in v0.6.5
func (u *InternalEventSource) Start(cctx typex.CCTX) error
func (*InternalEventSource) Status ¶ added in v0.6.5
func (u *InternalEventSource) Status() typex.SourceState
func (*InternalEventSource) Stop ¶ added in v0.6.5
func (u *InternalEventSource) Stop()
func (*InternalEventSource) Test ¶ added in v0.6.5
func (u *InternalEventSource) Test(inEndId string) bool
func (*InternalEventSource) Topology ¶ added in v0.6.5
func (*InternalEventSource) Topology() []typex.TopologyPoint
拓扑
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 MqttMessage ¶ added in v0.6.6
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.