Chronicle.EventStores (cratis_chronicle v0.2.0)

Copy Markdown View Source

Lists event stores and namespaces from the Chronicle kernel.

This mirrors the TypeScript client surface for event-store discovery in an idiomatic Elixir API.

Summary

Functions

Returns all event store names.

Returns all namespaces for an event store.

Functions

get_all(opts \\ [])

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

Returns all event store names.

Options

get_namespaces(opts \\ [])

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

Returns all namespaces for an event store.

Options

  • :client — the client name (default: Chronicle.Client)
  • :event_store — event store name (defaults to the configured client event store)