barrel_p2p_service_events (barrel_p2p v0.1.0)

View Source

Summary

Types

filter/0

-type filter() :: all | {name, atom() | binary()} | {pattern, binary()}.

Functions

handle_call(Request, From, State)

handle_cast(Msg, State)

handle_info(Info, State)

init(_)

notify(Event)

-spec notify(term()) -> ok.

start_link()

subscribe(Pid)

-spec subscribe(pid()) -> ok.

subscribe(Pid, Filter)

-spec subscribe(pid(), filter()) -> ok.

terminate(Reason, State)

unsubscribe(Pid)

-spec unsubscribe(pid()) -> ok.