Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClient ¶
type MockClient struct{}
Mock mqtt client that does nothing and can be used for testing.
func (*MockClient) Connect ¶
func (m *MockClient) Connect() error
func (*MockClient) Disconnect ¶
func (m *MockClient) Disconnect()
func (*MockClient) Publish ¶
func (m *MockClient) Publish(topic string, payload any)
func (*MockClient) Subscribe ¶
func (m *MockClient) Subscribe(topic string, callback pahomqtt.MessageHandler) error
Click to show internal directories.
Click to hide internal directories.