View Source Avrora.Storage.File (avrora v0.28.0)

Avora.Storage behavior implementation which uses the filesystem.

Schema name <namespace>.<namespace>.<name> will be stored to path namespace/namespace/name.avsc.

Summary

Functions

Read schema from disk by full name, including namespace.

Callback implementation for Avrora.Storage.put/2.

Functions

Read schema from disk by full name, including namespace.

Files are stored with each namespace component as a folder name. For example io.confluent.Payment should be stored as follows:

.
 lib/
 priv/
    ...
    schemas/
        io/
            confluent/
                Payment.avsc
 ...

Examples

iex> {:ok, schema} = Avrora.Storage.File.get("io.confluent.Payment")
iex> schema.full_name
"io.confluent.Payment"

Callback implementation for Avrora.Storage.put/2.