Documentation
¶
Overview ¶
SCOPE:plugin — GoAkt lifecycle (room actor system)
SCOPE:core - DO NOT REMOVE - Server entry point. This is the main binary. Package main wires the binary's startup sequence: the flat chi stack (internal/server), the goqite-backed chat queue it owns, optional NATS JetStream realtime, and the DagNats durable workflow engine (always compiled; opt out at runtime via DAGNATS_ENABLED).
Boot order is a graph, not a line: BootChi builds everything engine-free (and returns the todo handler the onboarding worker writes through), DagNats then owns the embedded NATS :4222, startNATS attaches to it, and AttachJetStream + Serve finish the stack. run() blocks until SIGINT or SIGTERM, so every deferred cleanup runs in reverse order on the way out.