events

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 9, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MqttPublisher

type MqttPublisher struct {
	// contains filtered or unexported fields
}

func NewMqttPublisher

func NewMqttPublisher(client mqtt.Client) *MqttPublisher

func (*MqttPublisher) Publish

func (m *MqttPublisher) Publish(topic string, payload []byte) error

type MsgPublisher

type MsgPublisher struct {
	// contains filtered or unexported fields
}

func NewMsgPublisher

func NewMsgPublisher(srcEvents gateway.SimulatorSource, p Publisher, topicFrame, topicSteering, topicThrottle string) *MsgPublisher

func (*MsgPublisher) Start

func (m *MsgPublisher) Start()

func (*MsgPublisher) Stop

func (m *MsgPublisher) Stop()

type Publisher

type Publisher interface {
	Publish(topic string, payload []byte) error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL