Documentation
¶
Overview ¶
Package badger is the pure-Go store.Engine (ADR-0065): a Badger v4 LSM at a local directory, superseding ADR-0006's slatedb/cgo engine and restoring funcd's pure-Go static binary. (bucket, key) is encoded as bucket+NUL+key — NUL cannot occur in a GVK bucket or a namespace/name key, so Scan prefix-matches unambiguously. Update runs in one Badger transaction (atomic all-or-nothing); the store wrapper serializes writers above it (its writeMu), so no engine-level conflict arises in practice.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*config)
Option tunes the engine.
func WithSyncWrites ¶
WithSyncWrites toggles fsync-on-commit (default true — durable control-plane writes).
func WithValueLogGCInterval ¶
WithValueLogGCInterval sets the value-log GC cadence (default 5m; 0 disables).