GroundPlane.PersistencePolicy.StoreCapability (GroundPlane Persistence Policy v0.1.0)

Copy Markdown View Source

Descriptor for an available persistence adapter capability.

Summary

Types

t()

@type t() :: %GroundPlane.PersistencePolicy.StoreCapability{
  adapter: atom(),
  data_classes: [atom()],
  durable?: boolean(),
  partitions: [GroundPlane.PersistencePolicy.Partition.t()],
  restart_safe?: boolean(),
  store_ref: String.t() | atom(),
  tier: atom()
}

Functions

new(attrs)

@spec new(map() | keyword()) :: {:ok, t()} | {:error, term()}