Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct { MessageChan chan *Message // 处理MQTT消息的队列 // contains filtered or unexported fields }
type EngineHelper ¶
type EngineHelper struct {
// contains filtered or unexported fields
}
func NewEngineHelper ¶
func NewEngineHelper() *EngineHelper
func (*EngineHelper) AddClient ¶
func (m *EngineHelper) AddClient(tag string, address string, opts ...MqttOption) error
func (*EngineHelper) AddRouting ¶
func (e *EngineHelper) AddRouting(fromTags, toTags, topicTags []string)
func (*EngineHelper) AddTopicFilter ¶
func (e *EngineHelper) AddTopicFilter(tag string, qos byte, filter ...string) error
func (*EngineHelper) BuildEngine ¶
func (e *EngineHelper) BuildEngine() (*Engine, error)
type MqttAddress ¶
type MqttOption ¶
type MqttOption func(*MqttAddress)
type TopicFilter ¶
type TopicFilterTree ¶
type TopicFilterTree struct {
// contains filtered or unexported fields
}
func NewTopicFilterTree ¶
func NewTopicFilterTree() *TopicFilterTree
func (*TopicFilterTree) AddFilter ¶
func (t *TopicFilterTree) AddFilter(topics ...string) *TopicFilterTree
func (*TopicFilterTree) MathFilter ¶
func (t *TopicFilterTree) MathFilter(topic string) (string, error)
Click to show internal directories.
Click to hide internal directories.