Documentation ¶
Overview ¶
Package clean provides functionality to stop a list of services gracefully and synchronously.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cleaner ¶
type Cleaner struct {
// contains filtered or unexported fields
}
Cleaner can be used to stop a list of services gracefully. To register an arbitrary amount of stoppers either use New or With. Start needs to be called to ready the Cleaner, then Clean will activate it. Done can be used to wait for Cleaner to run all registered stoppers.
func (*Cleaner) Clean ¶
func (c *Cleaner) Clean()
Clean initiates the cleanup but does not wait for it to complete.
Click to show internal directories.
Click to hide internal directories.