package
0.0.0-20240624093908-aac6d55a1f96
Repository: https://github.com/xizhibei/go-reverse-rpc.git
Documentation: pkg.go.dev

# Packages

Package mock_mqttadapter is a generated GoMock package.

# Functions

New creates a new MQTT client with the specified URI, client ID, and options.
WithClientID sets the client ID for the MQTT client.
WithConnectRetryInterval sets the interval for reconnecting to the MQTT broker.
WithDebug sets the debug mode for the MQTT client.
WithFileStore sets the file store for the MQTT client.
WithKeepAlive sets the keep alive interval for the MQTT client.
WithMaxReconnectInterval sets the maximum interval for reconnecting to the MQTT broker.
WithOfflineWill sets the offline will message for the MQTT client.
WithOnlineStatus sets the online status topic and payload for the MQTT client.
WithProtocolVersion sets the MQTT protocol version for the client.
WithQos sets the QoS level for the MQTT client.
WithStatus sets the online and offline status topics and payloads for the MQTT client.
WithStore sets the store for the MQTT client.
WithTlsConfig sets the TLS configuration for the MQTT client.
WithUserPass sets the username and password for the MQTT client.
WithWill sets the will message for the MQTT client.

# Structs

ClientOptions represents the options for configuring the MQTT client.
MQTTClientAdapterImpl represents an MQTT client.

# Interfaces

MQTTClientAdapter is an interface that defines the methods for interacting with an MQTT client.

# Type aliases

Message represents a message in the MQTT protocol.
MessageCallback is a function type that represents a callback for handling MQTT messages.
OnConnectCallback represents a callback function that is called when a connection is established.
OnConnectLostCallback is a function type that represents a callback function to be called when the connection to the MQTT broker is lost.
Option is a function that modifies the ClientOptions.