eventstore v0.8.0 EventStore.Snapshots.Snapshotter

Record and read snapshots of process state

Summary

Functions

Delete a previously recorded snapshot for a given source

Read a snapshot, if available, for a given source

Record a snapshot containing data and metadata for a given source

Record a snapshot containing data and metadata for a given source

Functions

delete_snapshot(source_uuid)

Delete a previously recorded snapshot for a given source

Returns :ok on success

read_snapshot(source_uuid)

Read a snapshot, if available, for a given source

record_snapshot(snapshot)

Record a snapshot containing data and metadata for a given source

Returns :ok on success

record_snapshot(snapshot, timeout)

Record a snapshot containing data and metadata for a given source

  • timeout is an integer greater than zero which specifies how many milliseconds to wait for a reply, or the atom :infinity to wait indefinitely. If no reply is received within the specified time, the function call fails and the caller exits. The default value is 5000.

Returns :ok on success

start_link(serializer)