Skip to main content

Crate libgrite_git

Crate libgrite_git 

Source
Expand description

Git-backed WAL and sync operations for Grite

This crate provides Git integration for Grite’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§

LockGcStats
Statistics from lock garbage collection
LockManager
Manager for git ref-based locks
PullResult
Result of a pull operation
PushResult
Result of a push operation
SnapshotManager
Manager for snapshot operations
SnapshotMeta
Metadata stored in each snapshot commit
SnapshotRef
Reference to a snapshot
SyncManager
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