message

package
v0.0.0-...-c97bc7e Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2015 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TypeSubscribed = "subscribed"
)

Functions

This section is empty.

Types

type Message

type Message struct {
	Sender     string `validate:"max=256,validtopic"`
	Type       string `validate:"max=256,validtopic"`
	Body       []byte
	QoS        byte
	Retained   bool
	BrokerName string
	Topic      string
}

Message represents a message in the Fuji package.

func (Message) String

func (m Message) String() string

type TopicString

type TopicString struct {
	Str string `validate:"max=32767,validtopic"`
}

TopicString is an type which is represents MQTT Topic string.

func (TopicString) Sring

func (topic TopicString) Sring() string

func (TopicString) Validate

func (topic TopicString) Validate() error

Validate validates Topic is valid for MQTT or not.

Jump to

Keyboard shortcuts

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