Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (16 sloc) 716 Bytes
%% @hidden
-module(on_deliver_hook).
-include("vernemq_dev.hrl").
-callback on_deliver(UserName :: username(),
SubscriberId :: subscriber_id(),
Topic :: topic(),
Payload :: payload()) -> ok
| {ok, Payload :: payload()}
| {ok, Modifiers :: [msg_modifier()]}
| next.
-type msg_modifier() ::
%% Rewrite the topic of the message.
{topic, topic()}
%% Rewrite the payload of the message.
| {payload, payload()}.
-export_type([msg_modifier/0]).
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.