Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MqttConsumer ¶
func NewConsumer ¶
func NewConsumer(cfg config.Config, id int) *MqttConsumer
func (MqttConsumer) Stop ¶ added in v0.3.0
func (c MqttConsumer) Stop(reason string)
type MqttPublisher ¶
type MqttPublisher struct { Id int Connection mqtt.Client Topic string Config config.Config // contains filtered or unexported fields }
func NewPublisher ¶
func NewPublisher(cfg config.Config, id int) *MqttPublisher
func (MqttPublisher) Send ¶ added in v0.2.0
func (p MqttPublisher) Send()
func (MqttPublisher) Start ¶
func (p MqttPublisher) Start(ctx context.Context)
func (MqttPublisher) StartFullSpeed ¶
func (p MqttPublisher) StartFullSpeed(ctx context.Context)
func (MqttPublisher) StartIdle ¶ added in v0.5.0
func (p MqttPublisher) StartIdle(ctx context.Context)
func (MqttPublisher) StartRateLimited ¶
func (p MqttPublisher) StartRateLimited(ctx context.Context)
func (MqttPublisher) Stop ¶ added in v0.3.0
func (p MqttPublisher) Stop(reason string)
Click to show internal directories.
Click to hide internal directories.