Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RouteIncludesTopic ¶
RouteIncludesTopic returns if the topic matches the given route
Types ¶
type MQTTBot ¶
type MQTTBot struct { Plugins *plugins.Plugins Subscriptions []*Subscription Client *mqttclient.MQTTClient Config *viper.Viper }
MQTTBot defines the bot, it contains plugins, subscriptions and a client
type PluginMapping ¶
PluginMapping defines the plugin to listen to given patterns
type Subscription ¶
type Subscription struct { Topic string Qos int PluginMappings []*PluginMapping }
Subscription defines the plugin mappings to a given topic
Click to show internal directories.
Click to hide internal directories.