Files
mqtt-bridge/engine/types.go
2022-09-04 00:47:12 +08:00

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
}