avrolixr v0.1.2 Avrolixr.Codec

Summary

Types

avro_t :: binary
error_t :: {:error, String.t}
schema_t :: String.t | map
type_t :: charlist
value_t :: any

Functions

decode(v_avro)

Specs

decode(avro_t) :: {:ok, value_t} | error_t
decode!(v_avro)

Specs

decode!(avro_t) :: value_t
encode(v, schema_json, type, opts \\ [])

Specs

encode(value_t, schema_t, type_t, list) ::
  {:ok, avro_t} |
  error_t
encode!(v, schema_json, type, opts \\ [])

Specs

encode!(value_t, schema_t, type_t, list) :: avro_t
robust?(v, schema_json, type, opts \\ [])
round_trip(v, schema_json, type, opts \\ [])

Specs

round_trip(value_t, schema_t, type_t, list) ::
  {:ok, value_t} |
  error_t
round_trip!(v, schema_json, type, opts \\ [])

Specs

round_trip!(value_t, schema_t, type_t, list) :: value_t