emqx/apps/emqx_rule_engine/include/rule_actions.hrl
Zaiming Shi 4a877a3a69 chore(apps): relocate some apps
emqx_telemetry is for opensource onlyh
emqx_rule_engiune is common
2021-02-19 11:24:41 +01:00

12 lines
293 B
Erlang

-compile({parse_transform, emqx_rule_actions_trans}).
-type selected_data() :: map().
-type env_vars() :: map().
-type bindings() :: list({atom(), term()}).
-define(BINDING_KEYS, '__bindings__').
-define(bound_v(Key, ENVS0),
maps:get(Key,
maps:get(?BINDING_KEYS, ENVS0, #{}))).