add mqtt_route record

This commit is contained in:
Feng 2016-03-08 13:16:35 +08:00
parent 52adc66bda
commit e7c1d85d91
1 changed files with 11 additions and 1 deletions

View File

@ -47,7 +47,7 @@
%%--------------------------------------------------------------------
-record(mqtt_topic, {
topic :: binary(),
node :: node()
flags :: [retained | static]
}).
-type mqtt_topic() :: #mqtt_topic{}.
@ -63,6 +63,16 @@
-type mqtt_subscription() :: #mqtt_subscription{}.
%%--------------------------------------------------------------------
%% MQTT Route
%%--------------------------------------------------------------------
-record(mqtt_route, {
topic :: binary(),
node :: node()
}).
-type mqtt_route() :: #mqtt_route{}.
%%--------------------------------------------------------------------
%% MQTT Client
%%--------------------------------------------------------------------