server

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Overview

Package server composes the triplet HTTP surface from configured subcomponents.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(cfg *config.Config, logger *slog.Logger) (*http.Server, error)

Build constructs an *http.Server from a validated config.

The returned server is not started. Callers own its lifecycle.

func Run

func Run(ctx context.Context, s *http.Server, logger *slog.Logger) error

Run starts s and blocks until ctx is cancelled, then performs a graceful shutdown bounded by 30 seconds.

Types

This section is empty.

Jump to

Keyboard shortcuts

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