liaison v0.1.0 Liaison.Strategy.Epmd View Source

Strategy for node connections via EPMD

config :liaison,
  strategy: [
    [
      strategy: Elixir.Liaison.Strategy.Epmd,
      reconnect_period: 10,
      nodes: []
    ]
  ]

Staying Connected

Staying conencted via the Epmd strategy is now easier than ever, just specify the nodes you want to connect to, and how often you want to attempt re-connect

Link to this section Summary

Functions

Returns the current configuration of the strategy

Updates the given module to adopt a new strategy. Returns {old config, new config}

Link to this section Types

Link to this type

strategy_config()

View Source
strategy_config() :: Keyword.t()

Link to this section Functions

Link to this function

get_config()

View Source
get_config() :: keyword()

Returns the current configuration of the strategy

Link to this function

start_link(strategy_config)

View Source
start_link(keyword()) :: :ignored | {:error, any()} | {:ok, pid()}
Link to this function

update_strategy(strat_config)

View Source
update_strategy(strategy_config()) ::
  {:ok, {strategy_config(), strategy_config()}}

Updates the given module to adopt a new strategy. Returns {old config, new config}