Documentation
¶
There is no documentation for this package.
Directories
¶
| Path | Synopsis |
|---|---|
|
api
|
|
|
cmd
|
|
|
ensemble-registry
command
ensemble-registry is the registry service binary (ADR-0009 §7): install it onto a node (it is itself an ensemble service package — the distribution system distributes its own distributor) or run it directly against a daemon socket for the dev loop.
|
ensemble-registry is the registry service binary (ADR-0009 §7): install it onto a node (it is itself an ensemble service package — the distribution system distributes its own distributor) or run it directly against a daemon socket for the dev loop. |
|
internal
|
|
|
api/grpcweb
Package grpcweb wraps an existing *grpc.Server so it also speaks the gRPC-Web protocol over plain HTTP.
|
Package grpcweb wraps an existing *grpc.Server so it also speaks the gRPC-Web protocol over plain HTTP. |
|
apps
Package apps implements daemon-managed installed services (ADR-0009): the on-disk install layout, the package manifest (ensemble-service.yaml), the install record (install.yaml), and the Supervisor that spawns and watches installed services as plain child processes.
|
Package apps implements daemon-managed installed services (ADR-0009): the on-disk install layout, the package manifest (ensemble-service.yaml), the install record (install.yaml), and the Supervisor that spawns and watches installed services as plain child processes. |
|
cache
Package cache provides a thread-safe, bounded, string-keyed TTL cache — the PeerState design language (ticket def0ab76) extracted for reuse: a TTL refreshed on every Get keeps actively-used entries warm, and a size cap evicts the least-recently-seen entries first, so only entries abandoned by churned-through identities are reaped.
|
Package cache provides a thread-safe, bounded, string-keyed TTL cache — the PeerState design language (ticket def0ab76) extracted for reuse: a TTL refreshed on every Get keeps actively-used entries warm, and a size cap evicts the least-recently-seen entries first, so only entries abandoned by churned-through identities are reaped. |
|
discovery
Package discovery wires the LAN (mDNS) and global (DHT) peer-discovery backends behind a unified Manager.
|
Package discovery wires the LAN (mDNS) and global (DHT) peer-discovery backends behind a unified Manager. |
|
metrics
Package metrics is the node's observability model and collector: a thread-safe pull Registry that subsystems register descriptors with and record samples into via cheap Counter/Gauge/Histogram handles, read by the gRPC/Prometheus surfaces through Snapshot() (the GetDebugInfo / NetDiagnostics pull-aggregator shape — subsystems own their counters, the registry reads; never inverted into push-from-every-caller).
|
Package metrics is the node's observability model and collector: a thread-safe pull Registry that subsystems register descriptors with and record samples into via cheap Counter/Gauge/Histogram handles, read by the gRPC/Prometheus surfaces through Snapshot() (the GetDebugInfo / NetDiagnostics pull-aggregator shape — subsystems own their counters, the registry reads; never inverted into push-from-every-caller). |
|
metrics/promexp
Package promexp adapts an internal/metrics Registry to Prometheus's text-exposition format — the "if you want real Grafana, you can" escape hatch.
|
Package promexp adapts an internal/metrics Registry to Prometheus's text-exposition format — the "if you want real Grafana, you can" escape hatch. |
|
registry
Package registry implements ADR-0009 §7: service distribution through registries that are themselves ensemble services, trusted by nothing but their E-address.
|
Package registry implements ADR-0009 §7: service distribution through registries that are themselves ensemble services, trusted by nothing but their E-address. |
|
registry/host
Package host is the registry service runtime (ADR-0009 §7): a daemon child (or dev-run process) that registers over RegisterService, serves the signed index through the registry command protocol, and accepts publisher-gated releases.
|
Package host is the registry service runtime (ADR-0009 §7): a daemon child (or dev-run process) that registers over RegisterService, serves the signed index through the registry command protocol, and accepts publisher-gated releases. |
|
rpc
Package rpc implements the libp2p stream path for service-platform envelopes: SERVICE_RPC bytes for SERVICE_TRANSPORT_RPC services (T1) and SERVICE_INTRODUCTION peer-introduction control messages (T2).
|
Package rpc implements the libp2p stream path for service-platform envelopes: SERVICE_RPC bytes for SERVICE_TRANSPORT_RPC services (T1) and SERVICE_INTRODUCTION peer-introduction control messages (T2). |
|
services
Package services owns the runtime registry of services hosted by the daemon.
|
Package services owns the runtime registry of services hosted by the daemon. |
|
signaling/loopback
Package loopback provides a same-host signaling.Backend backed by Unix domain sockets under a well-known rendezvous directory.
|
Package loopback provides a same-host signaling.Backend backed by Unix domain sockets under a well-known rendezvous directory. |
|
signaling/mdns
Package mdns provides a LAN-only signaling.Backend backed by mDNS / DNS-SD advertisements.
|
Package mdns provides a LAN-only signaling.Backend backed by mDNS / DNS-SD advertisements. |
|
signaling/tor
Package tor provides the Tor-based signaling.Backend implementation.
|
Package tor provides the Tor-based signaling.Backend implementation. |
|
ui-service
Package uiservice provides the built-in "ui" HTTP service that the daemon publishes alongside the chat-shaped "node" service.
|
Package uiservice provides the built-in "ui" HTTP service that the daemon publishes alongside the chat-shaped "node" service. |
|
uilog
Package uilog plumbs the stdlib log package into both a file and a TUI subscriber so TUI sessions don't have log lines smeared across the altscreen buffer.
|
Package uilog plumbs the stdlib log package into both a file and a TUI subscriber so TUI sessions don't have log lines smeared across the altscreen buffer. |
|
e2e
command
Package main is a runnable end-to-end test that spins up two local ensemble daemons in separate temp data dirs, has them discover each other over their own Tor onion services, and verifies a chat message flows from one to the other.
|
Package main is a runnable end-to-end test that spins up two local ensemble daemons in separate temp data dirs, has them discover each other over their own Tor onion services, and verifies a chat message flows from one to the other. |
|
tools
|
|
|
recover-onion
command
recover-onion derives the .onion address(es) of a node from its persisted master identity bundle alone — the verification arm of the seed-only recovery contract introduced by ticket 9ef9dd21.
|
recover-onion derives the .onion address(es) of a node from its persisted master identity bundle alone — the verification arm of the seed-only recovery contract introduced by ticket 9ef9dd21. |
Click to show internal directories.
Click to hide internal directories.