ExStorageService.CrossClusterReplication.Hooks (ex_storage_service v0.6.4)

Copy Markdown View Source

Builds deterministic eventual-DR events for object metadata transactions.

These events are separate from the RF/W cluster data plane. They are stored in the same Concord transaction as the object operation and dispatched with at-least-once semantics after commit.

Summary

Functions

events_for_delete(bucket, key, opts \\ [])

@spec events_for_delete(String.t(), String.t(), keyword()) ::
  {:ok, [map()]} | {:error, term()}

events_for_put(bucket, key, object, opts \\ [])

@spec events_for_put(String.t(), String.t(), map(), keyword()) ::
  {:ok, [map()]} | {:error, term()}