mqtt

package
v0.0.0-...-5352646 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2020 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