server

package
v0.0.0-...-088cb74 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2022 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GracefulShutdown

func GracefulShutdown(server *http.Server, waitTime time.Duration, logger ShutdownLogger) chan struct{}

GracefulShutdown will enable graceful shutdown on the passed server.

Types

type ShutdownLogger

type ShutdownLogger interface {
	Infof(format string, args ...interface{})
	Errorf(format string, args ...interface{})
}

ShutdownLogger implements logging for shutdown process.

Jump to

Keyboard shortcuts

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