View Source ElixirAvro.AvroType behaviour (elixir_avro v0.1.0)
Schema parser that gets Erl tuples (avro types) and transforms them into Elixir types.
Summary
Types
@type erlavro_type_name() ::
:avro_array_type
| :avro_enum_type
| :avro_fixed_type
| :avro_map_type
| :avro_primitive_type
| :avro_record_type
| :avro_union_type
@type t() :: ElixirAvro.AvroType.Array.t() | ElixirAvro.AvroType.Enum.t() | ElixirAvro.AvroType.Fixed.t() | ElixirAvro.AvroType.Map.t() | ElixirAvro.AvroType.Primitive.t() | ElixirAvro.AvroType.Record.t() | ElixirAvro.AvroType.Union.t() | String.t()
Callbacks
@callback from_erl(:avro.avro_type() | :avro.record_field() | String.t()) :: t()
Functions
@spec from_erl(:avro.avro_type() | :avro.record_field() | String.t()) :: t()