util

package
v1.1.1-0...-f7ff9f2 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DebugMQTT

func DebugMQTT(tag string, c net.Conn, msg mqtt.Message)

func DebugMQTTMsg

func DebugMQTTMsg(tag string, c proxy.ProxyConn, msg mqtt.Message)

func IsMqttDisconnect

func IsMqttDisconnect(msg mqtt.Message) bool

Types

type MqttTcpMessageReader

type MqttTcpMessageReader struct {
	Tcpconn     net.Conn
	InMsgs      chan mqtt.Message
	InErrors    chan error
	ReadTimeout time.Duration
}

func CreateMqttTcpMessageReader

func CreateMqttTcpMessageReader(tcpconn net.Conn, readTimeout time.Duration) *MqttTcpMessageReader

func (*MqttTcpMessageReader) ReadMqttMessages

func (m *MqttTcpMessageReader) ReadMqttMessages()

Jump to

Keyboard shortcuts

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