View Source partisan_peer_service_client (partisan v5.0.0-beta.13)

Link to this section Summary

Functions

Start and link to calling process. If the process is tarted and can get a connection it returns {ok, pid()}. Otherwise if it fails with

Link to this section Types

-type channel() :: atom().
-type listen_addr() :: #{ip => inet:ip_address(), port => non_neg_integer()}.
-type node_spec() ::
    #{name => node(),
      listen_addrs => [listen_addr()],
      channels => [channel()],
      parallelism => non_neg_integer()}.
-type state_t() :: #state{}.

Link to this section Functions

Link to this function

start_link(Peer, ListenAddr, Channel, From)

View Source
-spec start_link(node_spec(), listen_addr(), channel(), pid()) ->
              {ok, pid()} | ignore | {error, Reason :: any()}.
Start and link to calling process. If the process is tarted and can get a connection it returns {ok, pid()}. Otherwise if it fails with