server - Server state machine implementation pattern
Implements state machine pattern for server lifecycle with atomic state reads and idempotent stop
Tags
Updated: 2026-05-28Capabilities
Typical Inputs
Typical Outputs
What this skill does
- start server
- stop server
- read state
- transition state
- track goroutines
- cancel context
Inputs
- server config
- context
Outputs
- server state
- state change
- error signal
Requirements
- Go runtime
