listeners

package
v0.0.0-...-67ede2e Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Listener

type Listener struct {
	MqttOptions     *mqtt.ClientOptions
	ListenerName    string
	ListenerMQTTUrl *url.URL
}

func NewListener

func NewListener(listenerName string, urlString string, callback func(mqtt.Client, mqtt.Message)) (*Listener, error)

func (*Listener) Connect

func (l *Listener) Connect() error

Jump to

Keyboard shortcuts

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