Avrora.Client (avrora v0.18.1) View Source

Generates client module with isolated memory storage.


 defmodule MyClient do
   use Avrora.Client,
     schemas_path: Path.expand("./priv/schemas"),
     registry_url: "https://registry.io"

It 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 = [

 Supervisor.start_link(children, strategy: :one_for_one)

or start the process manually

 {:ok, pid} = MyClient.start_link()