commanded v0.10.0 Commanded.Serialization.ModuleNameTypeProvider

A type provider that uses the Elixir module name

Example:

  • %An.Event{} module mapped to “Elixir.An.Event”.

Summary

Functions

Type of the given Elixir struct as a string

Convert the given type string to an Elixir struct

Functions

to_string(struct)

Type of the given Elixir struct as a string

Callback implementation for Commanded.EventStore.TypeProvider.to_string/1.

to_struct(type)

Convert the given type string to an Elixir struct

Callback implementation for Commanded.EventStore.TypeProvider.to_struct/1.