Skip to content

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.

PackageDescription
dagPure DAG logic: workflow definitions, validation, state machine
workerTask execution framework: worker lifecycle, handlers, task context
protocolWire types: events, task payloads, resolutions
observeTelemetry interfaces: logging, tracing, metrics, error reporting
serverEmbedded NATS server with programmatic startup
bridgeHTTP-to-NATS gateway for non-Go workers
httpclientGo HTTP reference client for the bridge
dagnatstestTest helpers for one-call test setup
journalFenced 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