retort v1.2.0 Retort.Resources behaviour
Default callbacks for Calcinator.Resources
behaviour when backed by Retort.Client.Generic
Summary
Functions
The timeout for a specific function
of Retort.Client.Generic
Functions
allow_sandbox_access(module, map)
allow_sandbox_access(module, Calcinator.Resources.sandbox_access_token) :: :ok
delete(module, data)
delete(module, Ecto.Changeset.t) :: {:ok, Ecto.Schema.t} | {:error, Ecto.Changeset.t}
get(module, id, query_options)
get(module, Calcinator.Resources.id, Calcinator.Resources.query_options) :: {:ok, Ecto.Schema.t} | {:error, :not_found} | Retort.Client.Generic.error
insert(module, params, query_options)
insert(module, Ecto.Changeset.t | Calcinator.Resources.params, Calcinator.Resources.query_options) :: {:ok, Ecto.Schema.t} | {:error, Ecto.Changeset.t}
list(module, query_options)
list(module, Calcinator.Resources.query_options) :: {:ok, [Ecto.Schema.t], Alembic.Pagination.t | nil} | Retort.Client.Generic.error
The timeout for a specific function
of Retort.Client.Generic
.
update(module, changeset, query_options)
update(module, Ecto.Changeset.t, Calcinator.Resources.query_options) :: {:ok, Ecto.Schema.t} | {:error, Ecto.Changeset.t} | {:error, :bad_gateway} | {:error, :not_found}
update(module, data, params, query_options)
update(module, Ecto.Schema.t, Calcinator.Resources.params, Calcinator.Resources.query_options) :: {:ok, Ecto.Schema.t} | {:error, Ecto.Changeset.t}