Chronicle for Go
Chronicle.Go is the Go client SDK for Cratis Chronicle’s event store. Chronicle is part of Cratis Platform and can be adopted independently of its other components. Without the client, you manage OAuth, structural compatibility, schemas and RPC envelopes yourself; with it, you register event structs and append facts through context-aware store handles.
Start here
Section titled “Start here”Requires Go 1.26 or newer. The API may change in v0.x releases. First check the capability and limits summary, then follow the first-append source example.
For short-lived producers or on-demand operations, read one-shot and process ownership. Observer runtimes need normal logical sessions; registration sent does not prove subscription or catch-up.
Use the foundation
Section titled “Use the foundation”- Connecting and lifecycle: endpoints, TLS, OAuth and ownership.
- Event types: stable identities, generations and supported JSON shapes.
- Serialization: property naming, migration and shared Fundamentals values.
- Appending events: full results, metadata and concurrency protection.
- Event enrichment and auditing: declared-field editing and per-call audit snapshots.
- Identity display names: one update with acknowledgment and bounded name observation.
- Atomic batches: ordered mixed-source events and independent checks.
- Reading events: complete history and expectations derived from loaded state.
- Reactors: plain closures, convention handlers and optional scoped services.
- Reducers: nullable state folds, convention discovery and passive reads.
- Read models: typed reads, best-effort watches and materialized windows.
- Definition factories: prepare projections, constraints and migrations from configuration.
- Shared-provider client preparation: bind one borrowed client identity before preparing its definitions.
- Decision reads: admitted optimistic projection guards and owner-controlled commits.
- Read-model reactors: Added/Modified/Removed callbacks with scoped effects.
- Patterns: contextual and usual-action questions with honest empty answers.
- Parity and limitations: executable evidence and deliberate C# differences.
- Release policy: module versioning and compatibility.
Contracts target Chronicle 19.153.0 and real-kernel tests run against 19.153.0-development. The pin is not a supported kernel range. The capability summary gives the exact decision-read gate and other conditions. Release policy distinguishes source, tagged modules and documentation publication; this repository owns the product pages.