mqtt

package
v3.17.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 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