Squidie.Runtime.Journal (squidie v0.1.2)

Copy Markdown View Source

Storage boundary for Squidie durable runtime facts.

The dispatch protocol owns the runtime fact schema. This module adapts those facts into Jido thread entries and checkpoints so storage-backed runtime slices can rebuild projections without scanning storage adapter internals.

Summary

Types

append_error()

@type append_error() ::
  :empty_entries
  | {:mixed_threads, [Squidie.Runtime.DispatchProtocol.Entry.thread()]}
  | term()

loaded_thread()

@type loaded_thread() :: %{
  thread: Squidie.Runtime.DispatchProtocol.Entry.thread(),
  thread_id: String.t(),
  rev: non_neg_integer(),
  entries: [Squidie.Runtime.DispatchProtocol.Entry.t()]
}

storage_config()