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

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()