Skip to main content

Crate kimberlite_types

Crate kimberlite_types 

Source
Expand description

§kmb-types: Core types for Kimberlite

This crate contains shared types used across the Kimberlite system:

Structs§

AppliedIndex
Tracks which log entry a projection row was derived from.
BatchPayload
A batch of events to append to a stream.
Checkpoint
A periodic verification checkpoint stored in the log.
CheckpointPolicy
Policy for when to create checkpoints.
Generation
Monotonically increasing recovery generation.
GroupId
Unique identifier for a replication group.
Hash
A 32-byte cryptographic hash.
IdempotencyId
Unique identifier for duplicate transaction prevention.
Offset
Position of an event within a stream.
RecordHeader
Metadata header for every log record.
RecoveryRecord
Records a recovery event with explicit tracking of any data loss.
StreamId
Unique identifier for a stream within the system.
StreamMetadata
Metadata describing a stream’s configuration and current state.
StreamName
Human-readable name for a stream.
TenantId
Unique identifier for a tenant (organization/customer).
Timestamp
Wall-clock timestamp with monotonic guarantee within the system.

Enums§

AuditAction
Actions recorded in the audit log.
DataClass
Classification of data for compliance purposes.
PersistError
Error returned when event persistence fails.
Placement
Placement policy for a stream.
RecordKind
The kind of record stored in the log.
RecoveryReason
Reason why a recovery was triggered.
Region
Geographic region for data placement.

Constants§

HASH_LENGTH
Length of cryptographic hashes in bytes (SHA-256 / BLAKE3).
IDEMPOTENCY_ID_LENGTH
Length of idempotency IDs in bytes.

Traits§

EventPersister
Abstraction for persisting events to the durable event log.