-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdoc.go
More file actions
25 lines (25 loc) · 978 Bytes
/
doc.go
File metadata and controls
25 lines (25 loc) · 978 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Package core is the main entry point for the ColdBrew microservice framework.
// It creates a gRPC server with an HTTP gateway (via grpc-gateway), wires health checks,
// Prometheus metrics, pprof endpoints, signal handling, graceful shutdown, and all
// interceptors. Services implement the [CBService] interface to register their gRPC
// and HTTP handlers.
//
// ColdBrew builds on proven open-source libraries:
//
// - [github.com/grpc-ecosystem/grpc-gateway] — REST gateway for gRPC services
// - [github.com/prometheus/client_golang] — Prometheus metrics
// - [go.opentelemetry.io/otel] — Distributed tracing via OpenTelemetry
// - [github.com/newrelic/go-agent] — New Relic APM integration
//
// # Usage
//
// cb := core.New(config.Config{
// GRPCPort: "9090",
// HTTPPort: "9091",
// ServiceName: "my-service",
// })
// cb.SetService(myService)
// cb.Run()
//
// For full documentation, visit https://docs.coldbrew.cloud
package core