gracefulhttp

command module
v0.0.0-...-cd226af Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2021 License: Unlicense Imports: 11 Imported by: 0

README

Simple HTTP server with graceful shutdown

This is a simple HTTP server that allows for graceful shutdowns by using context. I've only included one third party library which I use for logging, so it has nothing to do with the solution in and of itself. I have also included a small example of how to embed files into the final binary and in this case it's part of a small demo web application.

You can freely use this project as a starting point or as a reference on how can you use context to gracefully handle signals and other concurrent code in general.

Contribution

Anyone can contribute as long as it doesn't add new functionality or anything that requires a change of license. I only accept fixes and improved solutions since this is only meant as a starting point or as a reference for other projects.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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