conn

package
v0.0.0-...-cc619e6 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MqttBroker

type MqttBroker interface {
	// Subscribes to given topic and receives events.
	Subscribe(ctx context.Context) error
}

MqttBroker represents the MQTT broker.

func NewBroker

func NewBroker(svc agent.Service, client mqtt.Client, chann string, messBroker messaging.PubSub, log *slog.Logger) MqttBroker

NewBroker returns new MQTT broker instance.

Jump to

Keyboard shortcuts

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