-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdoc.go
More file actions
18 lines (18 loc) · 963 Bytes
/
Copy pathdoc.go
File metadata and controls
18 lines (18 loc) · 963 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Package servekit provides a small, net/http-first bootstrap layer for HTTP services.
//
// The package focuses on production defaults for server lifecycle, middleware
// wiring, health/readiness probes, request and correlation IDs, JSON encoding,
// panic logging, graceful shutdown, and opt-in CORS.
//
// When OpenTelemetry is enabled, Servekit also wires request tracing and
// request metrics into the default handler stack. On the built-in Run path it
// additionally wires server-level connection metrics, because those depend on
// http.Server.ConnState rather than only on request middleware.
//
// Servekit is intentionally not a web framework: it does not define routing
// syntax beyond http.ServeMux patterns, does not impose dependency injection,
// and does not hide net/http primitives.
//
// Typical usage is to construct a Server with New, register handlers with
// Handle or HandleHTTP, then call Run from your main package.
package servekit