mqtt

package
v0.0.0-...-cfc3d81 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client mqtt.Client

type Handler

type Handler func(client Client, msg Message)

type Message

type Message mqtt.Message

type Service

type Service interface {
	Publish(topic string, qos byte, retained bool, payload interface{}) error
	Subscribe(topic string, handler Handler) error
}

func New

func New(broker string, id string) (Service, error)

Jump to

Keyboard shortcuts

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