module
Version:
v0.0.5
Opens a new window with list of versions in this module.
Published: Sep 8, 2025
License: Apache-2.0
Opens a new window with license information.
README
¶
Server Garage

A Go library providing common server infrastructure components for DIMO.
Overview
This repository contains reusable Go packages for building server applications with:
- Monitoring Server: HTTP server with health checks, metrics, and optional pprof profiling
- Server Runner: Utilities for gracefully starting and stopping HTTP, gRPC, and Fiber servers
- GraphQL Error Handling: Standardized error handling and presentation for GraphQL APIs
- GraphQL Metrics: Prometheus metrics collection for GraphQL requests
- Rich Errors: Enhanced error types with external messages and error codes
Packages
pkg/monserver: Monitoring server with health endpoints and metrics
pkg/runner: Server lifecycle management utilities
pkg/gql/errorhandler: GraphQL error handling and presentation
pkg/gql/metrics: GraphQL request metrics collection
pkg/richerrors: Enhanced error types with codes and external messages
Directories
¶
pkg
|
|
|
|
|
fibercommon
Package fibercommon provides common fiber related utilities.
|
Package fibercommon provides common fiber related utilities. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.