View Source Avrora.Client (avrora v0.29.1)
Generates client module with isolated memory storage.
Examples
defmodule MyClient do
use Avrora.Client,
schemas_path: Path.expand("./priv/schemas"),
registry_url: "https://registry.io"
endIt will expose Avrora.Encoder module functions and make MyClient module
identical to Avrora module, but isolated from it.
To start using MyClient follow the Start cache process,
add it to your supervision tree
children = [
MyClient
]
Supervisor.start_link(children, strategy: :one_for_one)or start the process manually
{:ok, pid} = MyClient.start_link()