View Source Pods.Manager behaviour (Elixir Pods v1.0.0)

This is the process manager. Implements how the pods will be started on the operating system and provides the main stdio interface for pod communication.

Summary

Callbacks

@callback init() :: none()
@callback send(pod :: map(), message :: String.t()) :: term()
Link to this callback

start(executable, decoder, out_handler, exception_handler, opts)

View Source
@callback start(
  executable :: String.t(),
  decoder :: term(),
  out_handler :: function(),
  exception_handler :: function(),
  opts :: [String.t()]
) :: {:ok | :error, pos_integer() | term()}
@callback stop(pod :: map()) :: term()