View Source gc_dist_erl (gen_cluster v0.3.0)

The default implementation of gc_dist that uses Erlang distribution for returning the current peers (nodes), connecting to a peer (node) or disconnecting from a peer (node).

Summary

Functions

-spec connect(gen_cluster:peer(), #state{}) -> boolean() | ignored.
-spec disconnect(gen_cluster:peer(), #state{}) -> boolean() | ignored.
-spec init(term()) -> {ok, #state{}}.
-spec members(#state{}) -> gen_cluster:peers().