broker

package
v0.0.0-...-5dabda3 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2016 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MQTTBroker

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

func NewMQTTBroker

func NewMQTTBroker(clientId string, brokerUrl string) *MQTTBroker

func (*MQTTBroker) Connect

func (m *MQTTBroker) Connect() error

func (*MQTTBroker) Disconnect

func (m *MQTTBroker) Disconnect()

func (*MQTTBroker) IsConnected

func (m *MQTTBroker) IsConnected() bool

func (*MQTTBroker) Publish

func (m *MQTTBroker) Publish(topic string, value []byte)

func (*MQTTBroker) Subscribe

func (m *MQTTBroker) Subscribe(event string, f func([]byte))

Jump to

Keyboard shortcuts

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