Discover Packages
github.com/blend/go-sdk
graceful
package
Version:
v0.3.2
Opens a new window with list of versions in this module.
Published: Oct 31, 2018
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 8
Opens a new window with list of known importers.
Documentation
Documentation
¶
Shutdown starts an hosted process and responds to SIGINT and SIGTERM to shut the app down.
It will return any errors returned by app.Start() that are not caused by shutting down the server.
ShutdownBySignal gracefully stops a hosted process based on an os signal channel.
type Graceful interface {
Start() error
Stop() error
NotifyStarted() <-chan struct{}
NotifyStopped() <-chan struct{}
}
Graceful is a server that can start and shutdown.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.