ExGAM.Domain.Configuration (ExGAM v0.1.0)

Copy Markdown View Source

Validated host wiring for one Domain sequencer.

Configuration is deliberately separate from governed state. It selects the adapters through which a deployment authenticates input, persists the ledger and reaches Zone X, but it grants no Mandate and is never treated as ledger truth. The resulting struct is immutable process configuration consumed by ExGAM.Domain.Sequencer during boot.

Summary

Functions

Normalizes and validates all immutable Domain process configuration.

Types

t()

@type t() :: %ExGAM.Domain.Configuration{
  activity_fence: {reference(), {module(), term()}} | nil,
  ambiguous_retries: non_neg_integer(),
  batch_size: pos_integer(),
  batch_wait_ms: non_neg_integer(),
  bootstrap_opts: keyword(),
  checkout_receipt_secret: binary(),
  clock: module(),
  clock_guard: ExGAM.Clock.Guard.t() | nil,
  conflict_retries: non_neg_integer(),
  constitution: map(),
  context_limits: ExGAM.Mind.Context.limits() | nil,
  domain_ref: String.t(),
  execution_boundary: ExGAM.Execution.Boundary.t(),
  generation: non_neg_integer(),
  grant_secret: binary(),
  grant_ttl_ms: pos_integer(),
  id_source: module(),
  ingress: module(),
  ingress_max_concurrency: pos_integer(),
  ingress_ref: String.t(),
  ingress_timeout: pos_integer(),
  late_observer: module() | nil,
  ledger_opts: keyword(),
  max_pending_submissions: pos_integer(),
  mind: module() | nil,
  mind_ref: String.t() | nil,
  payload_store: ExGAM.Payload.Store.config() | nil,
  projection_store: ExGAM.Domain.Projection.Store.config() | nil,
  recovery_policy: ExGAM.Domain.Recovery.Policy.config(),
  recovery_timeout: pos_integer(),
  store: ExGAM.Ledger.Store.config()
}

Functions

new(opts)

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

Normalizes and validates all immutable Domain process configuration.