View Source Avrora.Client (avrora v0.27.0)

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()