mqtt

package
v0.0.0-...-1eeb5f6 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Qos            = byte(1)
	ConnectTimeout = "10s"
)

Functions

This section is empty.

Types

type MsgHandler

type MsgHandler interface {
	Handle(msg mqtt.Message)
}

type Sub

type Sub struct {
	MsgHandler
	// contains filtered or unexported fields
}

func NewSub

func NewSub(h MsgHandler) *Sub

func (*Sub) PubUpdate

func (s *Sub) PubUpdate(mani *manifest.SubManifest, mani_bytes []byte) error

* Publish update on manifest generation

func (*Sub) PublishEvent

func (s *Sub) PublishEvent(data []byte) error

func (*Sub) PublishHeartbeat

func (s *Sub) PublishHeartbeat(data []byte) error

func (*Sub) SetOptions

func (s *Sub) SetOptions()

func (*Sub) StartSub

func (s *Sub) StartSub()

func (*Sub) SubUpdate

func (s *Sub) SubUpdate()

Jump to

Keyboard shortcuts

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