Avrora.Storage.Registry (avrora v0.17.0) View Source
Avora.Storage
behavior implementation which uses Confluent Schema
Registry.
This only implements the minimum client functionality needed to talk with the registry. Inspired by Schemex.
Link to this section Summary
Link to this section Functions
Get schema by integer ID.
Examples
...> {:ok, schema} = Avrora.Storage.Registry.get(1)
...> schema.full_name
"io.confluent.Payment"
Register new version of schema under subject name.
Examples
...> schema = ~s({"fields":[{"name":"id","type":"string"},{"name":"amount","type":"double"}],"name":"Payment","namespace":"io.confluent","type":"record"})
...> {:ok, schema} = Avrora.Storage.Registry.put("io.confluent.examples.Payment", schema)
...> schema.full_name
"io.confluent.Payment"