mqtt

package
v0.0.0-...-bc95524 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 10, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL