server-garage

module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2025 License: Apache-2.0

README

Server Garage

GitHub license GoDoc Go Report Card

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

Path Synopsis
pkg

Jump to

Keyboard shortcuts

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