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.
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.
Click to show internal directories.
Click to hide internal directories.