View Source Please (Please v0.1.0)

Documentation for Please.

This module will handle requests from nodes in the network and route them to the correct node that can handle the request. The module will also keep track of the nodes in the network and their capabilities to handle requests.

Summary

Functions

Returns a specification to start this module under a supervisor.

Makes a request to the network. The default timeout is 5000 milliseconds and can be changed by passing the timeout option.

Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this macro

make_it_so(module, function, args \\ [], opts \\ [])

View Source (macro)
@spec make_it_so(atom(), atom(), list(), list()) ::
  {:ok, any(), atom()} | {:error, :timeout}

Makes a request to the network. The default timeout is 5000 milliseconds and can be changed by passing the timeout option.

Examples

iex> Please.make_it_so(MyModule, :my_function, [1, 2, 3])
{:ok, function_output, :"some@other.node"}
Link to this function

start_link(init_arg \\ [])

View Source