package
0.1.7
Repository: https://github.com/canonical/mqtt.golang.git
Documentation: pkg.go.dev

# Functions

New creates a new instance of the simulator.
NewStateInfo creates a StateInfo.

# Constants

Appended to message body after action carried out (does not apply to Publish).
Disconnects when the `PUBACK` message has been received (before any response).
Disconnects when the `PUBREL` message has been received (before any response).
Disconnects when the `PUBLISH` message has been received (before any response).
Disconnects when the `PUBREC` message has been received (before any response).
Disconnects when the `PUBREL` message has been received (before any response).

# Variables

ErrorMIDsExhausted is returned from Request() when there are no free message ids to be used.

# Structs

Instance an instance of the test server Note that many variables are not mutex protected (because they are private and only accessed from one goroutine).
MIDs is a simple service to provide message IDs (mostly copied from paho).
StateInfo holds state information relating to a message ID.

# Interfaces

Logger mirrors paho.Logger.