message

package
v0.0.0-...-f81ab52 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2017 License: Apache-2.0 Imports: 5 Imported by: 12

Documentation

Index

Constants

View Source
const (
	TypeSubscribed = "subscribed"
)

Variables

This section is empty.

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) String

func (topic TopicString) String() 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