Expand description
NodeBuilder — the constructor for everything init_from_env does not
cover (blueprint §9.1).
Three shapes of node reach a daemon, and the builder is the one path all three take:
| Shape | How it is built |
|---|---|
| Spawned | NodeBuilder::from_env reads ASTRS_NODE_CONFIG (§24.2) |
| Dynamic | NodeBuilder::node_id + dynamic(true), endpoints from the environment (§8.3) |
| Overridden | Either of the above, plus explicit daemon/auth/dataflow |
§Defaults
Everything the builder does not set comes from §24.2: the Unix socket under
$XDG_RUNTIME_DIR/astrs first, then TCP loopback on 7408; the 4 KiB
zero-copy threshold; ASTRS_TYPE_CHECK=warn; and the orphan guard only
when ASTRS_RUN_PARENT_PID names a supervisor.
Structs§
- Node
Builder - Builds a
Node.
Constants§
- DEFAULT_
CONNECT_ TIMEOUT - How long the dial and greeting are allowed to take.
- ENV_
AUTH_ TOKEN - The environment variable carrying the cluster token in hex (§16).