mqtt

package module
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2025 License: MIT Imports: 21 Imported by: 2 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

mqtt

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {
	Close()
	// contains filtered or unexported methods
}

func NewHandler

func NewHandler(conf *config.Config, tsmap map[string]trans.Trans) Handler

NewHandler creates a new output handler and opens the output file (if applicable)

type MqttServer

type MqttServer interface {
	PublishViaQueue(ctx context.Context, topic string, qos byte, payload []byte) error
	Publish(ctx context.Context, topic string, qos byte, payload []byte) error
	MqttSubOnlyServer
}

func NewMqttPublishOnlyServ added in v1.2.0

func NewMqttPublishOnlyServ(conf *config.Config) (MqttServer, error)

func NewMqttServ

func NewMqttServ(conf *config.Config, tsmap map[string]trans.Trans) (MqttServer, error)

type MqttSubOnlyServer

type MqttSubOnlyServer interface {
	Run(ctx context.Context)
	Close()
	SetLog(l *log.Logger)
	Statue() error
}

func NewMqttSubOnlyServ

func NewMqttSubOnlyServ(conf *config.Config, tsmap map[string]trans.Trans) (MqttSubOnlyServer, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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