mirror of
https://github.com/yuelwish/mqtt-bridge.git
synced 2025-10-05 16:16:57 +08:00
36 lines
438 B
Go
36 lines
438 B
Go
package engine
|
|
|
|
type MqttAddress struct {
|
|
Address string
|
|
UserName string
|
|
Password string
|
|
}
|
|
|
|
type TopicFilter struct {
|
|
Tag string
|
|
Qos byte
|
|
Filter []string
|
|
}
|
|
|
|
type SubTopic struct {
|
|
Topic string
|
|
Qos byte
|
|
}
|
|
|
|
type Router struct {
|
|
FromTags []string
|
|
ToTags []string
|
|
TopicTags []string
|
|
}
|
|
|
|
type Node struct {
|
|
Value string
|
|
Child map[string]*Node
|
|
}
|
|
|
|
type Message struct {
|
|
FromTag string
|
|
Topic string
|
|
Payload []byte
|
|
}
|