ExESDB.Snapshots (ex_esdb v0.1.4)

The ExESDB Snapshots SubSystem.

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

path(source_uuid, stream_uuid, version)

@spec path(
  source_uuid :: String.t(),
  stream_uuid :: String.t(),
  version :: non_neg_integer()
) :: list()

Description

Returns the key for a snapshot as a Khepri Path.

Examples

iex> ExESDB.Snapshots.path("source_uuid", "stream_uuid", 1)
[:snapshots, "source_uuid", "stream_uuid", "000000001"]

start_link(opts)