internal/

directory
v1.26.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2026 License: AGPL-3.0

Directories

Path Synopsis
Package agg parses and runs the aggregation pipeline (plan §10.2, §11.3).
Package agg parses and runs the aggregation pipeline (plan §10.2, §11.3).
Package backup writes and reads the backup file: one NDJSON stream with the extension .ndb (or .ndb.gz when compressed).
Package backup writes and reads the backup file: one NDJSON stream with the extension .ndb (or .ndb.gz when compressed).
Package bench is the ESL outbox benchmark (ndb bench): an app that talks to FreeSWITCH writes 7 docs per call (6 events and a finishcall) and workers consume them.
Package bench is the ESL outbox benchmark (ndb bench): an app that talks to FreeSWITCH writes 7 docs per call (6 events and a finishcall) and workers consume them.
Package blob is the content-addressed store of plan §7.5.
Package blob is the content-addressed store of plan §7.5.
Package catalog stores collection definitions and merges declarations from code, ndb.yml and implicit creation (plan §5).
Package catalog stores collection definitions and merges declarations from code, ndb.yml and implicit creation (plan §5).
Package collection is one engine-mode collection: WAL writer, recovery, and the in-memory state (memtable) with CRUD.
Package collection is one engine-mode collection: WAL writer, recovery, and the in-memory state (memtable) with CRUD.
Package config loads the optional ndb.yml.
Package config loads the optional ndb.yml.
Package crashtest kills a child process with SIGKILL at random times and checks invariants after each kill.
Package crashtest kills a child process with SIGKILL at random times and checks invariants after each kill.
Package crypt encrypts the values of encrypted fields and makes the hashes of blind indexes.
Package crypt encrypts the values of encrypted fields and makes the hashes of blind indexes.
Package cursors keeps the position of each watch consumer in <data_dir>/cursors.bolt: collection + consumer name -> position token.
Package cursors keeps the position of each watch consumer in <data_dir>/cursors.bolt: collection + consumer name -> position token.
Package diskusage measures the bytes of a data dir, split by what they are for.
Package diskusage measures the bytes of a data dir, split by what they are for.
Package engine opens a data dir: it takes the lock, loads the catalog and opens one collection per catalog entry.
Package engine opens a data dir: it takes the lock, loads the catalog and opens one collection per catalog entry.
Package feed is the change feed of a collection: the events a consumer reads with watch, and the hub that fans live commits out to the watchers without ever blocking the writer (plan §10.4).
Package feed is the change feed of a collection: the events a consumer reads with watch, and the hub that fans live commits out to the watchers without ever blocking the writer (plan §10.4).
Package fs is the only door to the disk.
Package fs is the only door to the disk.
Package gen writes deterministic NDJSON test data.
Package gen writes deterministic NDJSON test data.
Package index has the order-preserving key encoding and the in-memory secondary index (a B-tree of key + id).
Package index has the order-preserving key encoding and the in-memory secondary index (a B-tree of key + id).
Package jsondoc decodes the documents that ndb has stored, on the hot read paths: queries, aggregations, seals and compactions.
Package jsondoc decodes the documents that ndb has stored, on the hot read paths: queries, aggregations, seals and compactions.
Package lock makes sure only one ndb process uses a data dir.
Package lock makes sure only one ndb process uses a data dir.
Package locks holds the pessimistic locks of documents: a lease on one _id, with a token and an expiry.
Package locks holds the pessimistic locks of documents: a lease on one _id, with a token and an expiry.
Package logging is the one logger of the daemon: log/slog with the levels debug, info, warn, error and quiet (nothing at all).
Package logging is the one logger of the daemon: log/slog with the levels debug, info, warn, error and quiet (nothing at all).
Package lookup reads the documents of other collections that the rows of an answer point to: the lookup key of _search and the $lookup stage of _aggregate (M18).
Package lookup reads the documents of other collections that the rows of an answer point to: the lookup key of _search and the $lookup stage of _aggregate (M18).
Package metrics has the small pieces of the Prometheus text format that ndb needs: histograms built on atomics, and the observer of a WAL writer.
Package metrics has the small pieces of the Prometheus text format that ndb needs: histograms built on atomics, and the observer of a WAL writer.
Package query parses, validates and evaluates the JSON query language (plan §10.1, §10.6).
Package query parses, validates and evaluates the JSON query language (plan §10.1, §10.6).
Package recovery replays a collection WAL after a start or a crash.
Package recovery replays a collection WAL after a start or a crash.
Package segment holds the immutable columnar files that a sealed memtable becomes (plan §7.3, §7.4).
Package segment holds the immutable columnar files that a sealed memtable becomes (plan §7.3, §7.4).
Package server serves the HTTP API of plan §12.1 on one or more listeners.
Package server serves the HTTP API of plan §12.1 on one or more listeners.
Package settings is the settings of a daemon that live in its data dir, not in ndb.yml: GET and PUT /_cluster/settings, and the encryption key.
Package settings is the settings of a daemon that live in its data dir, not in ndb.yml: GET and PUT /_cluster/settings, and the encryption key.
Package spec loads the shared cases in spec/cases and runs them against any Engine: the library, the HTTP API, or (through their own runners) the SDKs.
Package spec loads the shared cases in spec/cases and runs them against any Engine: the library, the HTTP API, or (through their own runners) the SDKs.
Package streams is the append-only log with consumer groups of docs/dev/streams.md: the behavior of Redis Streams on an engine collection, with the group state (PEL) in one bbolt file per stream.
Package streams is the append-only log with consumer groups of docs/dev/streams.md: the behavior of Redis Streams on an engine collection, with the group state (PEL) in one bbolt file per stream.
Package tailer follows the NDJSON files of a direct-mode collection and feeds each line to a Sink (plan §9).
Package tailer follows the NDJSON files of a direct-mode collection and feeds each line to a Sink (plan §9).
Package tui renders command output for people: tables that fit the terminal, with byte sizes and numbers a person can read.
Package tui renders command output for people: tables that fit the terminal, with byte sizes and numbers a person can read.
Package writer is the single writer of one collection WAL: it serializes commits, groups them into one write + one fsync, and rotates segments.
Package writer is the single writer of one collection WAL: it serializes commits, groups them into one write + one fsync, and rotates segments.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL