Directories
¶
| Path | Synopsis |
|---|---|
|
Package clock abstracts time for deterministic tests (governor yield latency, backoff, rolling stats).
|
Package clock abstracts time for deterministic tests (governor yield latency, backoff, rolling stats). |
|
Package config loads flockd configuration from defaults, an optional TOML file, and FLOCKD_-prefixed environment variables (koanf).
|
Package config loads flockd configuration from defaults, an optional TOML file, and FLOCKD_-prefixed environment variables (koanf). |
|
Package engine routes completion requests to loaded runtime Instances, applying governor admission and telemetry accounting.
|
Package engine routes completion requests to loaded runtime Instances, applying governor admission and telemetry accounting. |
|
Package enroll manages node identity (Ed25519 keypair that never leaves the device), CSR generation, the Enroll RPC, credential storage, and the `flock login` PKCE-style browser handoff (SPEC §4.1, §6).
|
Package enroll manages node identity (Ed25519 keypair that never leaves the device), CSR generation, the Enroll RPC, credential storage, and the `flock login` PKCE-style browser handoff (SPEC §4.1, §6). |
|
Package governor is the resource-governance policy engine (SPEC §4.1, §10).
|
Package governor is the resource-governance policy engine (SPEC §4.1, §10). |
|
Package hardware detects the node's compute capability and produces the typesv1.CapabilityProfile sent at enrollment and in heartbeats.
|
Package hardware detects the node's compute capability and produces the typesv1.CapabilityProfile sent at enrollment and in heartbeats. |
|
Package localapi is the daemon's loopback HTTP surface on localhost:7777: the OpenAI-compatible /v1 endpoints (Phase 0 exit criterion) and the management /api/v1 REST+SSE API that the CLI, TUI and embedded web dashboard all consume (SPEC §A1.2: one source of truth).
|
Package localapi is the daemon's loopback HTTP surface on localhost:7777: the OpenAI-compatible /v1 endpoints (Phase 0 exit criterion) and the management /api/v1 REST+SSE API that the CLI, TUI and embedded web dashboard all consume (SPEC §A1.2: one source of truth). |
|
Package logging provides slog setup plus an in-memory ring buffer handler backing GET /api/v1/logs.
|
Package logging provides slog setup plus an in-memory ring buffer handler backing GET /api/v1/logs. |
|
Package models manages the local model cache: catalog manifests (teraflock/models format), resumable GGUF downloads with SHA256 verification, and LRU eviction under the operator's disk budget.
|
Package models manages the local model cache: catalog manifests (teraflock/models format), resumable GGUF downloads with SHA256 verification, and LRU eviction under the operator's disk budget. |
|
Package runtime defines the inference Runtime interface (SPEC §A1.3) and its adapters.
|
Package runtime defines the inference Runtime interface (SPEC §A1.3) and its adapters. |
|
llamacpp
Package llamacpp adapts a supervised llama-server subprocess to the runtime.Runtime interface (SPEC §A1.3: subprocess, never cgo).
|
Package llamacpp adapts a supervised llama-server subprocess to the runtime.Runtime interface (SPEC §A1.3: subprocess, never cgo). |
|
Package svc installs and controls flockd as an OS service: launchd (macOS), systemd (Linux) and Windows SCM (stub).
|
Package svc installs and controls flockd as an OS service: launchd (macOS), systemd (Linux) and Windows SCM (stub). |
|
Package telemetry assembles heartbeats and keeps rolling performance stats (tok/s, request counters) shared by the tunnel, local API and TUI.
|
Package telemetry assembles heartbeats and keeps rolling performance stats (tok/s, request counters) shared by the tunnel, local API and TUI. |
|
Package tunnel implements the node side of flock.tunnel.v1.TunnelService: the persistent, node-initiated session over which the coordinator pushes dispatches, challenges and model assignments (SPEC §3: nodes dial out, never listen).
|
Package tunnel implements the node side of flock.tunnel.v1.TunnelService: the persistent, node-initiated session over which the coordinator pushes dispatches, challenges and model assignments (SPEC §3: nodes dial out, never listen). |
|
fakecoord
Package fakecoord is an in-process fake coordinator implementing flock.tunnel.v1.TunnelService over bufconn (SPEC §A2.2 key seam).
|
Package fakecoord is an in-process fake coordinator implementing flock.tunnel.v1.TunnelService over bufconn (SPEC §A2.2 key seam). |
Click to show internal directories.
Click to hide internal directories.