MeshxRpc.Server.Pool.child_spec

You're seeing just the function child_spec, go back to MeshxRpc.Server.Pool module for more information.
Link to this function

child_spec(id, opts \\ [])

View Source

Specs

child_spec(id :: atom(), opts :: Keyword.t()) :: Supervisor.child_spec()

Returns a specification to start a RPC server workers pool under a supervisor.

id is a pool id which should be a name of a module implementing user RPC functions.

opts are options described in "Configuration" section above and in MeshxRpc "Common configuration" section.

iex(1)> MeshxRpc.Server.Pool.child_spec(Example1.Server, address: {:uds, "/tmp/meshx.sock"})
%{
  id: {:ranch_embedded_sup, Example1.Server},
  start: {:ranch_embedded_sup, :start_link,
   [
     Example1.Server,
     :ranch_tcp,
     %{socket_opts: [ip: {:local, "/tmp/meshx.sock"}, port: 0]},
     MeshxRpc.Server.Pool,
     [
       ...
     ]
   ]},
  type: :supervisor
}