BamlElixir.NativeBehaviour behaviour (baml_elixir v1.0.0-pre.27)

Behaviour for the Native NIF module, enabling mocking in tests.

Summary

Callbacks

abort_tripwire(reference)

@callback abort_tripwire(reference()) :: :ok

call(t, map, t, list, arg5, arg6)

@callback call(String.t(), map(), String.t(), list(), map() | nil, list() | nil) ::
  {:ok, any()} | {:error, String.t()}

create_tripwire()

@callback create_tripwire() :: reference()

stream(pid, reference, reference, t, map, t, list, arg8, arg9)

@callback stream(
  pid(),
  reference(),
  reference(),
  String.t(),
  map(),
  String.t(),
  list(),
  map() | nil,
  list() | nil
) :: any()