barrel_p2p_router (barrel_p2p v0.1.0)

View Source

Summary

Functions

cache_route(ServiceName, ViaNode)

-spec cache_route(atom() | binary(), node()) -> ok.

find_route(Target)

-spec find_route(node()) -> {direct, node()} | {via, node()} | no_route.

find_service(ServiceName)

-spec find_service(atom() | binary()) -> {found, node(), pid()} | {error, term()}.

handle_call(Request, From, State)

handle_cast(Msg, State)

handle_info(Info, State)

init(_)

invalidate_all()

-spec invalidate_all() -> ok.

invalidate_route(Key)

-spec invalidate_route(atom() | binary() | node()) -> ok.

start_link()

terminate(Reason, State)