View Source OnePiece.Commanded.EventStore.ProtobufJsonbSerializer (OnePiece.Commanded v0.25.1)

A JSONB serializer using Protobuf.JSON.

Configuring

To use this serializer, add it to your config.exs:

config :my_app, MyApp.EventStore,
    serializer: OnePiece.Commanded.EventStore.ProtobufJsonbSerializer,
    types: EventStore.PostgresTypes

Aggregate Snapshots

To serialize aggregate snapshots, you need to implement the OnePiece.Commanded.ProtobufMapper protocol.

Summary

Functions

Convert given map to a Protobuf struct.

Convert given Protobuf struct to a map.

Functions

deserialize(term, config \\ [])

Convert given map to a Protobuf struct.

serialize(term)

Convert given Protobuf struct to a map.