View Source Doumi.Port.Adapter behaviour (Doumi.Port v0.6.0)

Link to this section Summary

Link to this section Types

@type instance() :: pid() | name()
@type name() :: {:global, atom()} | {:via, atom(), atom()} | atom()
@type start_result() :: {:ok, pid()} | {:error, term()}

Link to this section Callbacks

Link to this callback

call(instance, module, fun, args, opts)

View Source
@callback call(
  instance :: instance(),
  module :: atom(),
  fun :: atom(),
  args :: list(),
  opts :: list()
) :: term()
@callback default_opts(otp_app :: atom()) :: keyword()
@callback start(opts :: list()) :: start_result()
@callback start(name :: name(), opts :: list()) :: start_result()
@callback start_link(opts :: list()) :: start_result()
@callback start_link(name :: name(), opts :: list()) :: start_result()
@callback stop(instance :: instance()) :: :ok