Avrogen.Schema.SchemaRegistry (avrogen v1.1.0)

Copy Markdown View Source

Stores avro schemas and corresponding codec functions; provides lookup by schema name. Initialized on startup with schemas from priv directory.

Summary

Functions

Expand a wildcard relative to an app's root directory.

Returns a specification to start this module under a supervisor.

A decoder hook that will convert erlavro :null values to nil.

Return the super-schema which contains the topologically sorted concatenation of all schemas managed by this registry as a json string.

Return the binary decoding function which is capable of decoding all schemas.

Return the binary encoder function which is capable of encoding all messages.

Functions

app_wildcard(app, pattern)

Expand a wildcard relative to an app's root directory.

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

decoder_hook(type, sub_name_or_id, data, decode_fun)

A decoder hook that will convert erlavro :null values to nil.

get_avsc()

Return the super-schema which contains the topologically sorted concatenation of all schemas managed by this registry as a json string.

get_decoder()

Return the binary decoding function which is capable of decoding all schemas.

get_encoder()

Return the binary encoder function which is capable of encoding all messages.

make_decoder(avsc)

make_encoder(avsc)

start_link(args)