Skip to main content

Module backends

Module backends 

Source
Expand description

Backend-selection enums for a node’s blob + KV stores (node-library N2b).

These are the domain types the store-construction assembly dispatches on. They live here (not the binary) so the assembly can move into the library; the clap::ValueEnum derive is behind the optional clap feature so the CLI binary uses them directly in its args, while a non-CLI embedder never pulls clap. (build_kv/build_blobs join this module as they migrate off the binary’s ServeArgs.)

Enums§

BlobBackend
Blob (file-content) backend.
KvBackend
Metadata (manifest + pointer) backend.

Constants§

CONTROL_PLANE_FLUSH
Flush interval for the control-plane SlateDB store: tiny, so a control-plane write is durable almost immediately (correctness over throughput).

Functions§

build_kv
Build the metadata KV store for the selected KvBackend.