broker

package
v0.0.0-...-bfdebff Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BrokerConnection

type BrokerConnection struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func StartBrokerConnection

func StartBrokerConnection(host, login, password string) *BrokerConnection

func (*BrokerConnection) Subscribe

func (srvCon *BrokerConnection) Subscribe() *Client

func (*BrokerConnection) Unsubscribe

func (srvCon *BrokerConnection) Unsubscribe(client *Client)

type Client

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

func (*Client) GetRetained

func (c *Client) GetRetained() []mqtt.Message

func (*Client) Receive

func (c *Client) Receive() <-chan mqtt.Message

func (*Client) Send

func (c *Client) Send(topic string, qos byte, retained bool, payload interface{}) mqtt.Token

type RetainedKeeper

type RetainedKeeper struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func (*RetainedKeeper) GetAll

func (keeper *RetainedKeeper) GetAll() []mqtt.Message

Jump to

Keyboard shortcuts

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