We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1921d20 commit 58bbd59Copy full SHA for 58bbd59
1 file changed
lib/ecstatic/store.ex
@@ -1,6 +1,9 @@
1
+defmodule Ecstatic.Store do
2
alias Ecstatic.Entity
3
+
4
@type return_type :: {:ok, Entity.t()} | {:error, term()}
5
@type entity_id_type :: pos_integer() | String.t()
6
@callback save_entity(Entity.t()) :: return_type
7
@callback get_entity(entity_id_type) :: return_type
8
@callback delete_entity(entity_id_type) :: none()
9
+end
0 commit comments