View Source mqtt_sessions_retain (mqtt_sessions v2.6.1)

Summary

Functions

-spec cleanup(atom()) -> ok.
Link to this function

code_change(Vsn, State, Extra)

View Source
Link to this function

handle_call(Cmd, From, State)

View Source
Link to this function

handle_info(Info, State)

View Source
-spec init([atom()]) -> {ok, #state{pool :: atom(), topics :: ets:tab(), messages :: ets:tab()}}.
Link to this function

lookup(Pool, TopicFilter)

View Source
-spec lookup(atom(), [binary()]) -> {ok, [{mqtt_packet_map:mqtt_packet(), term()}]}.
Link to this function

retain(Pool, Msg, PublisherContext)

View Source
-spec retain(atom(), mqtt_packet_map:mqtt_packet(), term()) -> ok.
-spec start_link(atom()) -> {ok, pid()} | {error, term()}.
Link to this function

terminate(Reason, State)

View Source