Help us shape the future of Go! Take the 2026 Go Developer Survey

server

package
v0.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 25, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package server serves health probes and MCP over HTTP.

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 wires the ada web server to the dbq service layer.

func New

func New(cfg *config.Config, svc *service.Service, version string) (*Server, error)

New builds the HTTP server, mounting health probes and, when enabled, the MCP streamable HTTP endpoints.

func (*Server) Close added in v0.2.3

func (s *Server) Close() error

Close releases temporary export artifacts owned by the server.

func (*Server) Handler

func (s *Server) Handler() http.Handler

Handler exposes the routed http.Handler, for tests and for embedding dbq's endpoints in another server.

func (*Server) Start

func (s *Server) Start(ctx context.Context) error

Start runs the server until ctx is cancelled, then shuts it down gracefully.

ada logs the bound address itself, so nothing is logged here.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL