Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
toise-demo
command
Command toise-demo seeds a Toise event log with the phase-1 demonstration fixture — "a day in the life of web-server-1" (see internal/demo and docs/demo/scenario.md).
|
Command toise-demo seeds a Toise event log with the phase-1 demonstration fixture — "a day in the life of web-server-1" (see internal/demo and docs/demo/scenario.md). |
|
toise-probe
command
Command toise-probe is a real OTLP/gRPC producer for demos and end-to-end testing.
|
Command toise-probe is a real OTLP/gRPC producer for demos and end-to-end testing. |
|
toise-server
command
Command toise-server is the main entry point for the Toise server.
|
Command toise-server is the main entry point for the Toise server. |
|
examples
|
|
|
producer-docker
command
Command producer-docker turns the local Docker state into Toise entities: one "container" entity per running container, the host they run on, and a runs_on edge.
|
Command producer-docker turns the local Docker state into Toise entities: one "container" entity per running container, the host they run on, and a runs_on edge. |
|
producer-minimal
command
Command producer-minimal is the smallest useful Toise producer: it emits a host and a service.listener that runs on it, keeps them alive on a heartbeat, and deletes them on Ctrl-C. It uses only the built-in entity vocabulary, so it works against a stock toise-server with no extra flags.
|
Command producer-minimal is the smallest useful Toise producer: it emits a host and a service.listener that runs on it, keeps them alive on a heartbeat, and deletes them on Ctrl-C. It uses only the built-in entity vocabulary, so it works against a stock toise-server with no extra flags. |
|
producer-systemd
command
Command producer-systemd maps systemd service units to Toise entities: one "service" per unit (identity {host.id, service.name}, descriptive active_state and sub_state), the host, and a runs_on edge.
|
Command producer-systemd maps systemd service units to Toise entities: one "service" per unit (identity {host.id, service.name}, descriptive active_state and sub_state), the host, and a runs_on edge. |
|
producer-uptime
command
Command producer-uptime probes a list of URLs on an interval and emits each as a Toise entity whose descriptive state (up, status code, latency) flips as the site goes up or down.
|
Command producer-uptime probes a list of URLs on an interval and emits each as a Toise entity whose descriptive state (up, status code, latency) flips as the site goes up or down. |
|
internal
|
|
|
annotations
Package annotations is the operator-added overlay on entities: free-form key/value notes a human or an assistant attaches to an entity (owner, runbook link, ticket, a remark).
|
Package annotations is the operator-added overlay on entities: free-form key/value notes a human or an assistant attaches to an entity (owner, runbook link, ticket, a remark). |
|
audit
Package audit records security-relevant operations — today the operator writes (annotate_entity) — to an append-only, exportable JSON-line stream, distinct from the producer event log (ADR 0028).
|
Package audit records security-relevant operations — today the operator writes (annotate_entity) — to an append-only, exportable JSON-line stream, distinct from the producer event log (ADR 0028). |
|
auth
Package auth provides optional bearer-token authentication for Toise's data surfaces — the HTTP query surfaces (GraphQL, MCP, debug UI) and the OTLP/gRPC ingest.
|
Package auth provides optional bearer-token authentication for Toise's data surfaces — the HTTP query surfaces (GraphQL, MCP, debug UI) and the OTLP/gRPC ingest. |
|
canonical
Package canonical holds the read-time identity overlay of ADR 0020: the walk over producer-asserted same_as belief edges that says which entities are believed to be the same real thing.
|
Package canonical holds the read-time identity overlay of ADR 0020: the walk over producer-asserted same_as belief edges that says which entities are believed to be the same real thing. |
|
change
Package change is Toise's change-detection engine.
|
Package change is Toise's change-detection engine. |
|
config
Package config resolves the toise-server configuration from layered sources.
|
Package config resolves the toise-server configuration from layered sources. |
|
debugui
Package debugui serves a minimal, server-rendered HTML view over Toise's read model — the same in-memory projection (current state) and event log (history) the GraphQL and MCP surfaces use.
|
Package debugui serves a minimal, server-rendered HTML view over Toise's read model — the same in-memory projection (current state) and event log (history) the GraphQL and MCP surfaces use. |
|
demo
Package demo builds the phase-1 demonstration fixture: "a day in the life of web-server-1", a 24-hour simulated evolution of one host's infrastructure.
|
Package demo builds the phase-1 demonstration fixture: "a day in the life of web-server-1", a 24-hour simulated evolution of one host's infrastructure. |
|
graphql
Package graphql wires the gqlgen executable schema, resolvers, transports, and guardrails into an http.Handler.
|
Package graphql wires the gqlgen executable schema, resolvers, transports, and guardrails into an http.Handler. |
|
graphql/resolvers
Package resolvers implements the gqlgen ResolverRoot, backing the GraphQL API with the in-memory projection (current state) and the event log (history).
|
Package resolvers implements the gqlgen ResolverRoot, backing the GraphQL API with the in-memory projection (current state) and the event log (history). |
|
ingest
Package ingest accepts OpenTelemetry entity events over OTLP/gRPC and routes them to the change-detection engine (see ADR 0009).
|
Package ingest accepts OpenTelemetry entity events over OTLP/gRPC and routes them to the change-detection engine (see ADR 0009). |
|
logship
Package logship ships immutable event-log segments off-node on a cadence — the continuous, finer-RPO complement to the cold checkpoint backup (ADR 0029).
|
Package logship ships immutable event-log segments off-node on a cadence — the continuous, finer-RPO complement to the cold checkpoint backup (ADR 0029). |
|
mcp
Package mcp exposes Toise as a Model Context Protocol server, built on the official Go SDK (github.com/modelcontextprotocol/go-sdk).
|
Package mcp exposes Toise as a Model Context Protocol server, built on the official Go SDK (github.com/modelcontextprotocol/go-sdk). |
|
metrics
Package metrics exposes Toise's internals as Prometheus metrics at /metrics.
|
Package metrics exposes Toise's internals as Prometheus metrics at /metrics. |
|
model
Package model defines Toise's domain types: entities, relations, the typed attribute Value, and the bi-temporal, classified events that flow through the system.
|
Package model defines Toise's domain types: entities, relations, the typed attribute Value, and the bi-temporal, classified events that flow through the system. |
|
oidc
Package oidc verifies OIDC/JWT bearer tokens on Toise's read surfaces and maps their claims to a tenant id and an access role (ADR 0028).
|
Package oidc verifies OIDC/JWT bearer tokens on Toise's read surfaces and maps their claims to a tenant id and an access role (ADR 0028). |
|
ops
Package ops provides the operational HTTP endpoints — liveness and readiness probes — that orchestrators and uptime monitors target directly, so a deployment no longer needs a synthetic httpcheck against a UI page.
|
Package ops provides the operational HTTP endpoints — liveness and readiness probes — that orchestrators and uptime monitors target directly, so a deployment no longer needs a synthetic httpcheck against a UI page. |
|
projection
Package projection maintains Toise's live graph as an in-memory projection of the event log (see ADR 0008).
|
Package projection maintains Toise's live graph as an in-memory projection of the event log (see ADR 0008). |
|
registry
Package registry holds one independent {store, projection, change-engine} stack per tenant, so a single Toise process serves multiple tenants with physically isolated graphs (ADR 0025, #95).
|
Package registry holds one independent {store, projection, change-engine} stack per tenant, so a single Toise process serves multiple tenants with physically isolated graphs (ADR 0025, #95). |
|
store
Package store implements Toise's durable, append-only event log on top of Pebble (see ADR 0007).
|
Package store implements Toise's durable, append-only event log on top of Pebble (see ADR 0007). |
|
tenant
Package tenant resolves and carries a generic, vendor-neutral tenant id so the graph can be scoped per tenant (ADR 0025).
|
Package tenant resolves and carries a generic, vendor-neutral tenant id so the graph can be scoped per tenant (ADR 0025). |
|
version
Package version exposes build-time version information for the Toise server.
|
Package version exposes build-time version information for the Toise server. |
|
pkg
|
|
|
emit
module
|
|
|
proto
|
|
Click to show internal directories.
Click to hide internal directories.