Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MqttConfig ¶
type Publisher ¶
type Publisher interface { Start() Stop() Connect() SetIn(chan types.DataPoint) GetIn() chan types.DataPoint }
Publisher streams data to the outside world
type SimpleConfig ¶
type SimpleConfig struct {
Mqtt MqttConfig
}
type SimpleSink ¶
type SimpleSink struct { In chan types.DataPoint Sink mqttClient // contains filtered or unexported fields }
func NewSimplePublisher ¶
func NewSimplePublisher(spc SimpleConfig) *SimpleSink
func (*SimpleSink) Connect ¶
func (s *SimpleSink) Connect()
func (*SimpleSink) GetIn ¶
func (s *SimpleSink) GetIn() chan types.DataPoint
func (*SimpleSink) SetIn ¶
func (s *SimpleSink) SetIn(in chan types.DataPoint)
func (*SimpleSink) Start ¶
func (s *SimpleSink) Start()
func (*SimpleSink) Stop ¶
func (s *SimpleSink) Stop()
Click to show internal directories.
Click to hide internal directories.