avrora v0.2.0 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)
View Source
get(key :: String.t() | integer()) ::
{:ok, result :: nil | Avrora.Schema.t()} | {:error, reason :: term()}
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, value)
View Source
put(key :: String.t() | integer(), value :: String.t() | Avrora.Schema.t()) ::
{:ok, result :: Avrora.Schema.t()} | {:error, reason :: term()}
put(key :: String.t() | integer(), value :: String.t() | Avrora.Schema.t()) :: {:ok, result :: Avrora.Schema.t()} | {:error, reason :: term()}