How ga4gh/ga4gh_service_info_sidecar_gsoc_2026 works
This is a standalone GA4GH ServiceInfo HTTP microservice. A client reaches it through Kubernetes Ingress; the service reads validated metadata from a mounted configuration file, serves it at /service-info, and exposes health and Prometheus metrics endpoints. Configuration hot-reloads in the background, while the server handles signal-driven graceful shutdown. The graph reflects the sampled runtime wiring and README-described Kubernetes integration; deployment manifests and unsampled implementation details are not mapped.
Main entry points: main.go Server startup and shutdown · config.go Config watcher · service_info.go ServiceInfo endpoint · health.go Health endpoints
Components 12
Startup and lifecycle
- Server startup and shutdown
cmd/server/main.go
Metadata configuration
- Config watcher
internal/config/config.go - ServiceInfo model
internal/model/service_info.go
HTTP API
- ServiceInfo endpoint
internal/handler/service_info.go - CORS middleware
internal/middleware/cors.go
Health and metrics
- Health endpoints
internal/handler/health.go - Request metrics
internal/middleware/metrics.go - Metrics endpoint
cmd/server/main.go
Other components
- API client
- Kubernetes Ingress
- Mounted ConfigMap file
- Prometheus scraper
Connections 14
- API client → Kubernetes Ingress: sends requests
README.md - Kubernetes Ingress → Server startup and shutdown: routes service-info
README.md - Mounted ConfigMap file → Config watcher: provides configuration
README.md - Server startup and shutdown → Config watcher: initializes and watches
cmd/server/main.go - Config watcher → Mounted ConfigMap file: reads and reloads
internal/config/config.go - Config watcher → ServiceInfo model: parses metadata
internal/config/config.go - Server startup and shutdown → ServiceInfo endpoint: registers route
cmd/server/main.go - ServiceInfo endpoint → Config watcher: gets current config
internal/handler/service_info.go - Server startup and shutdown → Health endpoints: registers probes
cmd/server/main.go - Health endpoints → Config watcher: checks readiness
internal/handler/health.go - Server startup and shutdown → CORS middleware: wraps HTTP handlers
cmd/server/main.go - Server startup and shutdown → Request metrics: wraps HTTP handlers
cmd/server/main.go - Server startup and shutdown → Metrics endpoint: starts metrics server
cmd/server/main.go - Prometheus scraper → Metrics endpoint: scrapes metrics
README.md