Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Closer ¶
type Closer struct {
// contains filtered or unexported fields
}
Closer handles shutdown of servers and connections
func (*Closer) DetectShutdown ¶
func (cc *Closer) DetectShutdown(log logrus.FieldLogger) func()
DetectShutdown asynchronously waits for a shutdown signal and then shuts down gracefully Returns a function to trigger a shutdown from the outside, like cancelling a context
type Shutdownable ¶
Shutdownable is a target that can be closed gracefully
Click to show internal directories.
Click to hide internal directories.