GroundPlane.PersistencePolicy (GroundPlane Persistence Policy v0.1.0)

Copy Markdown View Source

Pure persistence profile, tier, capture, store-set, partition, and debug contract.

The built-in default is :mickey_mouse: memory-only and free of durable infrastructure requirements.

Summary

Functions

built_in_profile(profile)

@spec built_in_profile(atom()) ::
  {:ok, GroundPlane.PersistencePolicy.Profile.t()} | {:error, term()}

built_in_profiles()

@spec built_in_profiles() :: [atom()]

emit_debug(tap_module, tap, event)

@spec emit_debug(module(), term(), map()) :: {:ok, term()} | {:error, term(), term()}

preflight(profile, capabilities, checker)

resolve(attrs)

@spec resolve(keyword() | map()) ::
  {:ok, GroundPlane.PersistencePolicy.Profile.t()} | {:error, term()}

resolve!(attrs)

test_matrix()

@spec test_matrix() :: map()