Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hook ¶
type Hook struct { OnStart func(context.Context) error OnStop func(context.Context) error // contains filtered or unexported fields }
A Hook is a pair of start and stop callbacks, either of which can be nil, plus a string identifying the supplier of the hook.
type Lifecycle ¶
type Lifecycle struct {
// contains filtered or unexported fields
}
Lifecycle coordinates application lifecycle hooks.
Click to show internal directories.
Click to hide internal directories.