package
0.10.0
Repository: https://github.com/pmoscode/go-common.git
Documentation: pkg.go.dev

# Functions

Deprecated: Use "NewClient" instead of this.
NewBrokerBuilder configures the connection parameters like: - Host, port, protocol - TLS connection.
NewClient Creates a new MQTT client with default configuration.
WithBroker defines the host and port of the mqtt broker.
WithClientId defines the client name which will be registered on the broker.
WithOrderMatters defines if the order of publish and subscribed message is respected.

# Constants

Default StatusType constants.
Default StatusType constants.
No description provided by the author
No description provided by the author
Default StatusType constants.
No description provided by the author
No description provided by the author

# Structs

Broker defines the properties ,which are needed to build the broker host and the TLS connection.
Client struct, which holds the client itself and the options for it.
Message defines the default message which is received and sent by the mqtt client.
StatusPublishMessage defines a possible message to represent a "health message".

# Type aliases

Option defines the function which overrides the default options of the mqtt client.
StatusType can be used for a basic status message (like a "health message") with.