mqtt

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Destroy

func Destroy(messageQueue *MessageQueue)

Types

type MessageQueue

type MessageQueue struct {
	// contains filtered or unexported fields
}

func New

func New(address string, userName string, password string) (*MessageQueue, error)

func (*MessageQueue) Publish

func (messageQueue *MessageQueue) Publish(topic string, data string) error

func (*MessageQueue) Subscribe

func (messageQueue *MessageQueue) Subscribe(group string, topic string, handler common.MessageHandler) error

func (*MessageQueue) UnSubscribe

func (messageQueue *MessageQueue) UnSubscribe(group string, topic string) error

Jump to

Keyboard shortcuts

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