View Source Avrogen.Schema.SchemaRegistry (avrogen v0.8.5)

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

Link to this function

app_wildcard(app, pattern)

View Source

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

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

decoder_hook(type, sub_name_or_id, data, decode_fun)

View Source

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.