Packages

Self-healing clusters for Gleam applications on the BEAM!

Current section

Files

Jump to
barnacle include barnacle_Strategy.hrl
Raw

include/barnacle_Strategy.hrl

-record(strategy, {
discover_nodes :: fun(() -> {ok, list(gleam@erlang@atom:atom_())} |
{error, any()}),
connect_nodes :: fun((list(gleam@erlang@atom:atom_())) -> {ok,
list(gleam@erlang@atom:atom_())} |
{error,
list({gleam@erlang@atom:atom_(), gleam@erlang@node:connect_error()})}),
disconnect_nodes :: fun((list(gleam@erlang@atom:atom_())) -> {ok,
list(gleam@erlang@atom:atom_())} |
{error,
list({gleam@erlang@atom:atom_(), barnacle:node_disconnect_error()})}),
list_nodes :: fun(() -> {ok, list(gleam@erlang@atom:atom_())} |
{error, any()})
}).