mqtt

package
v0.0.0-...-f330bf7 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Connect() error
	Publish(topic string, obj any)
	Disconnect()
	Subscribe(topic string, callback mqtt.MessageHandler) error
}

func NewClient

func NewClient(monitor Monitor) Client

func NewClientWithConfig

func NewClientWithConfig(conf conf.MQTTConfig, monitor Monitor) Client

type Monitor

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

func NewMQTTMonitor

func NewMQTTMonitor(registry *monitoring.Registry) Monitor

Jump to

Keyboard shortcuts

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