rsim v0.1.0 Rsim.ImageRepo behaviour View Source

Image Repo Behaviour

Link to this section Summary

Callbacks

Find image in repo

Find image in repo by id width and height

Save file to storage

Save file to storage with specified parent image ID

Link to this section Callbacks

Find image in repo

Link to this callback find(arg0, integer, integer) View Source
find(String.t(), integer(), integer()) :: Rsim.Image.t() | nil

Find image in repo by id width and height

Save file to storage

Link to this callback save(arg0, arg1) View Source
save(Rsim.Image.t(), String.t()) ::
  {:ok, Ecto.Schema.t()} | {:error, Ecto.Changeset.t()}

Save file to storage with specified parent image ID