server

package
v0.0.0-...-d8ff57e Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartSrvWithGracefulShutdown

func StartSrvWithGracefulShutdown(ctx context.Context, srv *http.Server, graceShutdownTime int) (err error)

StartSrvWithGracefulShutdown start the incoming http.Server with goroutine and listen for shutdown signals to achieve elegant exit.

It will block the caller to enable listening and processing of the shutdown signal.

Types

This section is empty.

Jump to

Keyboard shortcuts

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