Documentation
¶
Index ¶
Constants ¶
View Source
const ( // MessagesTopic is the topic name for update messages MessagesTopic = "msgs" // EventsTopic is the topic name for events EventsTopic = "events" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MsgSource ¶
type MsgSource struct { Server *url.URL Prefix string ClientID string Client paho.Client // contains filtered or unexported fields }
MsgSource processes messages from MQTT bus
func NewMsgSourceFromURL ¶
NewMsgSourceFromURL creates a MsgSource by parsing a URL
func (*MsgSource) ProcessMessages ¶
func (s *MsgSource) ProcessMessages(sink vis.MessageSink) error
ProcessMessages implements vis.MsgSource
func (*MsgSource) RecvMessages ¶
RecvMessages implements vis.MessageSink
Click to show internal directories.
Click to hide internal directories.