Documentation ¶
Index ¶
- type Client
- func (_m *Client) AddRoute(topic string, callback mqtt.MessageHandler)
- func (_m *Client) Connect() mqtt.Token
- func (_m *Client) Disconnect(quiesce uint)
- func (_m *Client) IsConnected() bool
- func (_m *Client) IsConnectionOpen() bool
- func (_m *Client) OptionsReader() mqtt.ClientOptionsReader
- func (_m *Client) Publish(topic string, qos byte, retained bool, payload interface{}) mqtt.Token
- func (_m *Client) Subscribe(topic string, qos byte, callback mqtt.MessageHandler) mqtt.Token
- func (_m *Client) SubscribeMultiple(filters map[string]byte, callback mqtt.MessageHandler) mqtt.Token
- func (_m *Client) Unsubscribe(topics ...string) mqtt.Token
- type Message
- type Token
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is an autogenerated mock type for the Client type
func (*Client) AddRoute ¶
func (_m *Client) AddRoute(topic string, callback mqtt.MessageHandler)
AddRoute provides a mock function with given fields: topic, callback
func (*Client) Disconnect ¶
Disconnect provides a mock function with given fields: quiesce
func (*Client) IsConnected ¶
IsConnected provides a mock function with given fields:
func (*Client) IsConnectionOpen ¶
IsConnectionOpen provides a mock function with given fields:
func (*Client) OptionsReader ¶
func (_m *Client) OptionsReader() mqtt.ClientOptionsReader
OptionsReader provides a mock function with given fields:
func (*Client) Publish ¶
Publish provides a mock function with given fields: topic, qos, retained, payload
func (*Client) Subscribe ¶
Subscribe provides a mock function with given fields: topic, qos, callback
func (*Client) SubscribeMultiple ¶
func (_m *Client) SubscribeMultiple(filters map[string]byte, callback mqtt.MessageHandler) mqtt.Token
SubscribeMultiple provides a mock function with given fields: filters, callback
type Message ¶
Message is an autogenerated mock type for the Message type