Go SDK
API reference for the public Go packages in the DagNats module (github.com/danmestas/dagnats).
Each package section includes a hand-written overview and auto-generated API documentation from source.
| Package | Description |
|---|---|
| dag | Pure DAG logic: workflow definitions, validation, state machine |
| worker | Task execution framework: worker lifecycle, handlers, task context |
| protocol | Wire types: events, task payloads, resolutions |
| observe | Telemetry interfaces: logging, tracing, metrics, error reporting |
| server | Embedded NATS server with programmatic startup |
| bridge | HTTP-to-NATS gateway for non-Go workers |
| httpclient | Go HTTP reference client for the bridge |
| dagnatstest | Test helpers for one-call test setup |
| journal | Fenced per-step agent journal: claims, appends, commits, recovery and the invariant checker (ADR-026) |
| ci | .dagnats/ci.yml CI-spec compiler (Parse/Compile/CompileYAML), consumed by both the dagnats-ci add-on module and the /v1/ci/{compile,validate} control-plane endpoints |