mqtt

package
v3.24.0 Latest Latest
Warning

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

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

Documentation

Overview

Package mqtt contains MQTT-related utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Logger

func Logger(i log.Interface) mqttlog.Interface

Logger wraps a log.Interface to the Mystique logger interface.

func RunListener added in v3.16.1

func RunListener(
	ctx context.Context,
	lis mqttnet.Listener,
	ts task.Starter,
	createResource func(string) ratelimit.Resource,
	rateLimiter ratelimit.Interface,
	setupConnection func(context.Context, mqttnet.Conn) error,
) error

RunListener runs the MQTT accept connection loop.

func RunSession added in v3.16.1

func RunSession(
	ctx context.Context,
	cancel func(error),
	ts task.Starter,
	session session.Session,
	mqttConn mqttnet.Conn,
	wg *sync.WaitGroup,
)

RunSession reads the control packets from the provided session and sends them to the connection.

Types

This section is empty.

Jump to

Keyboard shortcuts

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