Avrora.Client (avrora v0.23.0) View Source

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"
 end

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 = [
   MyClient
 ]

 Supervisor.start_link(children, strategy: :one_for_one)

or start the process manually

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