package
0.11.0
Repository: https://github.com/yannishuber/drivers.git
Documentation: pkg.go.dev

# Functions

NewClient will create an MQTT v3.1.1 client with all of the options specified in the provided ClientOptions.
NewClientOptions returns a new ClientOptions struct.

# Structs

ClientOptions contains configurable options for an MQTT Client.
ClientOptionsReader provides an interface for reading ClientOptions after the client has been initialized.

# Interfaces

Client is the interface definition for a Client as used by this library, the interface is primarily to allow mocking tests.
Message defines the externals that a message implementation must support these are received messages that are passed to the callbacks, not internal messages.
Token defines the interface for the tokens used to indicate when actions have completed.

# Type aliases

MessageHandler is a callback type which can be set to be executed upon the arrival of messages published to topics to which the client is subscribed.