server

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package server provides utilities for managing HTTP server lifecycle operations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GracefulShutdown

func GracefulShutdown(srv *http.Server, timeout time.Duration, done chan struct{}, closeDB ...func() error) (err error)

GracefulShutdown listens for OS signals and gracefully shuts down the server

Types

This section is empty.

Jump to

Keyboard shortcuts

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