mcl_core_lan_subscriber (mcl_core v1.0.0)

View Source

One subscription on the LAN (docs/DESIGN.md §2.3).

The process joins the pg group {topic, Topic}, and runs the subscription's own macula_subscriber module as the mesh does: init/1 with its args, then handle_event/4 for each event, {noreply, _} to go on and {stop, Reason, _} to end. An event whose publisher the subscription's sources do not take is dropped before the module sees it. Delivery is at most once; a LAN has no replay.

Summary

Functions

handle_call(Request, From, State)

handle_cast(Msg, State)

handle_info(Msg, State)

init(Sub)

start_link(Sub)

terminate(Reason, _)