avrora v0.1.0-beta Avrora.Storage behaviour View Source

A general storage behaviour which allows a client to get the schema by a given name or a global ID and store a given schema under a specific name.

Link to this section Summary

Link to this section Callbacks

Link to this callback

get(key) View Source
get(key :: String.t() | integer()) ::
  {:ok, result :: nil | Avrora.Schema.t()} | {:error, reason :: term()}

Link to this callback

put(key, value) View Source
put(
  key :: String.t() | integer(),
  value :: String.t() | map() | Avrora.Schema.t()
) :: {:ok, result :: Avrora.Schema.t()} | {:error, reason :: term()}