Avrora.Config behaviour (avrora v0.18.1) View Source

Configuration for Avrora.

Options:

* `schemas_path` path to local schema files, default `./priv/schemas`
* `registry_url` URL for Schema Registry, default `nil`
* `registry_auth` authentication settings for Schema Registry, default `nil`
* `registry_schemas_autoreg` automatically register schemas in Schema Registry, default `true`
* `convert_null_values` convert `:null` values in the decoded message into `nil`, default `true`
* `convert_map_to_proplist` bring back old behavior and configure decoding AVRO map-type as proplist, default `false`
* `names_cache_ttl` duration to cache global schema names millisecods, default `:infinity`

Internal use interface:

* `file_storage` module which handles files in `schemas_path`, default `Avrora.Storage.File`
* `memory_storage` module which handles memory operations, default `Avrora.Storage.Memory`
* `registry_storage` module which handles Schema Registry requests, default `Avrora.Storage.Registry`
* `http_client` module which handles HTTP client requests to Schema Registry, default `Avrora.HTTPClient`
* `ets_lib` module which creates ETS tables with call `Module.new/0`

Link to this section Summary

Link to this section Callbacks

Link to this callback

convert_map_to_proplist()

View Source

Specs

convert_map_to_proplist() :: boolean()

Specs

convert_null_values() :: boolean()

Specs

ets_lib() :: module() | atom()

Specs

file_storage() :: module()

Specs

http_client() :: module()

Specs

memory_storage() :: module()

Specs

names_cache_ttl() :: integer() | atom()

Specs

registry_auth() :: tuple() | nil
Link to this callback

registry_schemas_autoreg()

View Source

Specs

registry_schemas_autoreg() :: boolean()

Specs

registry_storage() :: module()

Specs

registry_url() :: String.t() | nil

Specs

schemas_path() :: String.t()