package
0.0.0-20250128035417-84048cf2426f
Repository: https://github.com/jonesrussell/goforms.git
Documentation: pkg.go.dev

# README

Server Package

This package handles HTTP server lifecycle management.

Responsibilities

  • HTTP server initialization
  • Server lifecycle management (start/stop)
  • Graceful shutdown
  • Server configuration
  • Error handling and logging

Key Components

  • Server: Main server structure
  • New: Server factory with lifecycle hooks
  • Lifecycle hooks for Fx integration
  • Graceful shutdown handling

Usage

srv := server.New(lc, logger, config)

# Functions

New creates a new server instance with the provided dependencies.

# Structs

Server handles HTTP server lifecycle and configuration.