Documentation ¶
Overview ¶
Package lifecycle provides common code for hooking into a golang application lifecycle such as setting up a shutdown hook and deferring functions until application shutdown.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Resolve ¶
Resolve will process all functions that have been enqueued by Defer up until this point.
Types ¶
type LifeCycle ¶
type LifeCycle struct {
// contains filtered or unexported fields
}
LifeCycle hooks into various lifecycle events. It allows functions to be deferred en masse.
func (*LifeCycle) Resolve ¶
Resolve will process all functions that have been enqueued by Defer up until this point.
Click to show internal directories.
Click to hide internal directories.