View Source ElixirAvro.Template (elixir_avro v0.1.0)

Module responsible for processing templates.

Summary

Functions

Evaluates the all types applying the given template.

Types

@type t() :: %ElixirAvro.Template{
  doc: String.t(),
  fields: [ElixirAvro.AvroType.RecordField.t()],
  name: String.t(),
  prefix: String.t(),
  symbols: [String.t()]
}

Functions

Link to this function

eval!(avro_type, prefix)

View Source
@spec eval!(ElixirAvro.AvroType.t(), String.t()) :: {String.t(), String.t()}
Link to this function

eval_all!(types, prefix)

View Source
@spec eval_all!([ElixirAvro.AvroType.t()], String.t()) :: %{
  required(String.t()) => String.t()
}

Evaluates the all types applying the given template.

Examples

NOTE: put here all the examples.