mqtt

package
v0.0.0-...-5785f03 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MQTTBinding

type MQTTBinding struct {
	MQTTClient gmqtt.Client
}

func (*MQTTBinding) Launch

func (m *MQTTBinding) Launch(config MQTTBindingConfig, endpoints []v1alpha2.Endpoint) error

func (*MQTTBinding) Shutdown

func (m *MQTTBinding) Shutdown(ctx context.Context) error

Shutdown stops the MQTT binding

type MQTTBindingConfig

type MQTTBindingConfig struct {
	BrokerAddress string `json:"brokerAddress"`
	ClientID      string `json:"clientID"`
	RequestTopic  string `json:"requestTopic"`
	ResponseTopic string `json:"responseTopic"`
}

Jump to

Keyboard shortcuts

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