Packages

PostgreSQL backend for Factos context-first Event Sourcing using pog.

Current section

Files

Jump to
factos_pog include factos@factos_pog_EventCodec.hrl
Raw

include/factos@factos_pog_EventCodec.hrl

-record(event_codec, {
encode :: fun((any()) -> factos@factos_pog:proposed(any())),
decode :: fun((factos@factos_pog:stored_event()) -> {ok,
factos:decoded(any())} |
{error, factos@factos_pog:decode_error()})
}).