mqtt

package
v3.20.2 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Overview

Package mqtt implements the MQTT frontend.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve

func Serve(ctx context.Context, server io.Server, listener net.Listener, format Format, protocol string) error

Serve serves the MQTT frontend.

func TopicParts added in v3.16.1

func TopicParts(up *io.ContextualApplicationUp, layout topics.Layout) []string

TopicParts generates the topic parts for the provided uplink.

Types

type Format

type Format interface {
	topics.Layout
	formatters.Formatter
}

Format represents a topic layout and message formatter.

var JSON Format = &json{
	Layout:    topics.Default,
	Formatter: formatters.JSON,
}

JSON is a format that uses the default topic layout and JSON formatter.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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