input

package
v0.0.0-...-fd45449 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MQTT

type MQTT struct {
	Incoming chan paho.Message
	Done     chan struct{}

	sync.Mutex
	// contains filtered or unexported fields
}

func New

func New(options MQTTOptions) *MQTT

func (*MQTT) Close

func (m *MQTT) Close()

func (*MQTT) Connect

func (m *MQTT) Connect() error

func (*MQTT) Subscribe

func (m *MQTT) Subscribe(topic string) error

func (*MQTT) Unsubscribe

func (m *MQTT) Unsubscribe(topics ...string) error

type MQTTOptions

type MQTTOptions struct {
	Server   string
	Username string
	Password string
	QoS      int
	ClientID string
	Debug    bool
}

Jump to

Keyboard shortcuts

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