retort v1.2.0 Retort.Resources behaviour

Default callbacks for Calcinator.Resources behaviour when backed by Retort.Client.Generic

Summary

Functions

allow_sandbox_access(module, map)
allow_sandbox_access(module, Calcinator.Resources.sandbox_access_token) :: :ok
changeset(module, params)
delete(module, data)
delete(module, Ecto.Changeset.t) ::
  {:ok, Ecto.Schema.t} |
  {:error, Ecto.Changeset.t}
get(module, id, query_options)
insert(module, params, query_options)
list(module, query_options)
sandbox_token_key(module)
sandbox_token_key(module) :: atom
timeout(module, function)
timeout(module, function :: atom) :: timeout

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)

Callbacks

association_to_include(arg0)
association_to_include(atom | Keyword.t) :: String.t
client_start_link()
client_start_link() :: GenServer.on_start
ecto_schema_module()
ecto_schema_module() :: module
full_associations(list)
full_associations(list) :: list