Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
ndb
command
Command ndb is the daemon.
|
Command ndb is the daemon. |
|
ndbgen
command
ndbgen writes deterministic NDJSON test data.
|
ndbgen writes deterministic NDJSON test data. |
|
internal
|
|
|
agg
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). |
|
backup
Package backup copies a data dir.
|
Package backup copies a data dir. |
|
blob
Package blob is the content-addressed store of plan §7.5.
|
Package blob is the content-addressed store of plan §7.5. |
|
catalog
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). |
|
collection
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. |
|
config
Package config loads the optional ndb.yml.
|
Package config loads the optional ndb.yml. |
|
crashtest
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. |
|
cursors
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. |
|
diskusage
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. |
|
engine
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. |
|
feed
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). |
|
fs
Package fs is the only door to the disk.
|
Package fs is the only door to the disk. |
|
gen
Package gen writes deterministic NDJSON test data.
|
Package gen writes deterministic NDJSON test data. |
|
index
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). |
|
lock
Package lock makes sure only one ndb process uses a data dir.
|
Package lock makes sure only one ndb process uses a data dir. |
|
metrics
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. |
|
query
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). |
|
recovery
Package recovery replays a collection WAL after a start or a crash.
|
Package recovery replays a collection WAL after a start or a crash. |
|
segment
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). |
|
server
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. |
|
spec
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. |
|
tailer
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). |
|
tui
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. |
|
writer
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. |
|
sdk
|
|
|
go
module
|
Click to show internal directories.
Click to hide internal directories.