pipemqtt

package
v0.0.0-...-f92ee09 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package pipemqtt is a very simplistic example of how to forward messages to an MQTT server. If you want to use this for production you should rewrite it for more robustness.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MQTTStream

type MQTTStream struct {
	// contains filtered or unexported fields
}

MQTTStream ...

func New

func New(clientID string, password string, address string, topicPrefix string) *MQTTStream

New ...

func (*MQTTStream) AddNext

func (p *MQTTStream) AddNext(pe pipeline.Pipeline)

AddNext ...

func (*MQTTStream) Next

func (p *MQTTStream) Next() pipeline.Pipeline

Next ...

func (*MQTTStream) Publish

func (p *MQTTStream) Publish(m *model.Message) error

Publish ...

Jump to

Keyboard shortcuts

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