docs/vendor/github.com/eclipse/paho.mqtt.golang
Chi Zhang 73030ef0f0
Switch from dep to go mod (#2718)
2020-08-26 13:58:06 -07:00
..
packets Eventing - IoT Core Sample (#519) 2018-11-12 14:33:45 -08:00
.gitignore Switch from dep to go mod (#2718) 2020-08-26 13:58:06 -07:00
CONTRIBUTING.md Switch from dep to go mod (#2718) 2020-08-26 13:58:06 -07:00
DISTRIBUTION Switch from dep to go mod (#2718) 2020-08-26 13:58:06 -07:00
LICENSE Eventing - IoT Core Sample (#519) 2018-11-12 14:33:45 -08:00
README.md Switch from dep to go mod (#2718) 2020-08-26 13:58:06 -07:00
about.html Switch from dep to go mod (#2718) 2020-08-26 13:58:06 -07:00
client.go Eventing - IoT Core Sample (#519) 2018-11-12 14:33:45 -08:00
components.go Eventing - IoT Core Sample (#519) 2018-11-12 14:33:45 -08:00
edl-v10 Switch from dep to go mod (#2718) 2020-08-26 13:58:06 -07:00
epl-v10 Switch from dep to go mod (#2718) 2020-08-26 13:58:06 -07:00
filestore.go Eventing - IoT Core Sample (#519) 2018-11-12 14:33:45 -08:00
memstore.go Eventing - IoT Core Sample (#519) 2018-11-12 14:33:45 -08:00
message.go Eventing - IoT Core Sample (#519) 2018-11-12 14:33:45 -08:00
messageids.go Eventing - IoT Core Sample (#519) 2018-11-12 14:33:45 -08:00
net.go Eventing - IoT Core Sample (#519) 2018-11-12 14:33:45 -08:00
notice.html Eventing - IoT Core Sample (#519) 2018-11-12 14:33:45 -08:00
oops.go Eventing - IoT Core Sample (#519) 2018-11-12 14:33:45 -08:00
options.go Eventing - IoT Core Sample (#519) 2018-11-12 14:33:45 -08:00
options_reader.go Eventing - IoT Core Sample (#519) 2018-11-12 14:33:45 -08:00
ping.go Eventing - IoT Core Sample (#519) 2018-11-12 14:33:45 -08:00
router.go Eventing - IoT Core Sample (#519) 2018-11-12 14:33:45 -08:00
store.go Eventing - IoT Core Sample (#519) 2018-11-12 14:33:45 -08:00
token.go Eventing - IoT Core Sample (#519) 2018-11-12 14:33:45 -08:00
topic.go Eventing - IoT Core Sample (#519) 2018-11-12 14:33:45 -08:00
trace.go Eventing - IoT Core Sample (#519) 2018-11-12 14:33:45 -08:00

README.md

GoDoc Go Report Card

Eclipse Paho MQTT Go client

This repository contains the source code for the Eclipse Paho MQTT Go client library.

This code builds a library which enable applications to connect to an MQTT broker to publish messages, and to subscribe to topics and receive published messages.

This library supports a fully asynchronous mode of operation.

Installation and Build

This client is designed to work with the standard Go tools, so installation is as easy as:

go get github.com/eclipse/paho.mqtt.golang

The client depends on Google's websockets and proxy package, also easily installed with the commands:

go get golang.org/x/net/websocket
go get golang.org/x/net/proxy

Usage and API

Detailed API documentation is available by using to godoc tool, or can be browsed online using the godoc.org service.

Make use of the library by importing it in your Go client source code. For example,

import "github.com/eclipse/paho.mqtt.golang"

Samples are available in the cmd directory for reference.

Runtime tracing

Tracing is enabled by assigning logs (from the Go log package) to the logging endpoints, ERROR, CRITICAL, WARN and DEBUG

Reporting bugs

Please report bugs by raising issues for this project in github https://github.com/eclipse/paho.mqtt.golang/issues

More information

Discussion of the Paho clients takes place on the Eclipse paho-dev mailing list.

General questions about the MQTT protocol are discussed in the MQTT Google Group.

There is much more information available via the MQTT community site.