Expand description
Git-backed WAL and sync operations for Grit
This crate provides Git integration for Grit’s event system:
- CBOR chunk encoding/decoding for portable event storage
- WAL (Write-Ahead Log) operations via
refs/grite/wal - Snapshot management via
refs/grite/snapshots/<ts> - Push/pull sync operations with conflict handling
Structs§
- Lock
GcStats - Statistics from lock garbage collection
- Lock
Manager - Manager for git ref-based locks
- Pull
Result - Result of a pull operation
- Push
Result - Result of a push operation
- Snapshot
Manager - Manager for snapshot operations
- Snapshot
Meta - Metadata stored in each snapshot commit
- Snapshot
Ref - Reference to a snapshot
- Sync
Manager - Manager for sync operations
- WalCommit
- Information about a WAL commit
- WalManager
- Manager for WAL operations
Enums§
- GitError
- Errors that can occur during Git operations
Constants§
- CHUNK_
CODEC - Codec identifier
- CHUNK_
MAGIC - Magic bytes at start of chunk
- CHUNK_
VERSION - Current chunk format version
Functions§
- chunk_
hash - Compute BLAKE2b-256 hash of chunk data
- decode_
chunk - Decode a chunk into a list of events
- encode_
chunk - Encode a list of events into a chunk