Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server serves the GraphQL endpoint, MCP endpoint, WebSocket stream, and embedded frontend.
func New ¶
func New(s *store.Store, hub *ws.Hub, frontendFS fs.FS, runtime otelopgraphql.RuntimeInfo) *Server
New creates a new Server. When runtime.Debug is true, HTTP requests are instrumented with OpenTelemetry spans via otelhttp. runtime.Version is advertised via the MCP Implementation metadata at /mcp.
func (*Server) Listen ¶ added in v0.4.0
Listen binds the configured HTTP listener without serving. Splitting listen from Serve lets the daemon entry point report bind errors back to the parent before signaling "ready". Safe to call more than once.
Click to show internal directories.
Click to hide internal directories.