mqtt

package
v3.11.4 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2021 License: Apache-2.0 Imports: 21 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.

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