Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/uber-go/fx
/ Append
Method
Append
lifecycle.go:38–38 ·
view source on GitHub ↗
(Hook)
Source
from the content-addressed store, hash-verified
36
// applications' initialization, startup, and shutdown logic.
37
type
Lifecycle
interface
{
38
Append(Hook)
39
}
40
41
// A Hook is a pair of start and stop callbacks, either of which can be nil.
Callers
15
TestWindowsMinimalApp
Function · 0.65
Append
Method · 0.65
buildHookInstaller
Method · 0.65
TestTimeoutOptions
Function · 0.65
TestAppRunTimeout
Function · 0.65
TestAppStart
Function · 0.65
TestAppStop
Function · 0.65
TestHookConstructors
Function · 0.65
TestShutdownThenWait
Function · 0.65
TestCustomLoggerWithLifecycle
Function · 0.65
NewMux
Function · 0.65
installAllEventLoggers
Method · 0.65
Implementers
3
lifecycleWrapper
lifecycle.go
Lifecycle
internal/lifecycle/lifecycle.go
Lifecycle
fxtest/lifecycle.go
Calls
no outgoing calls
Tested by
12
TestWindowsMinimalApp
Function · 0.52
TestTimeoutOptions
Function · 0.52
TestAppRunTimeout
Function · 0.52
TestAppStart
Function · 0.52
TestAppStop
Function · 0.52
TestHookConstructors
Function · 0.52
TestShutdownThenWait
Function · 0.52
TestCustomLoggerWithLifecycle
Function · 0.52
NewMux
Function · 0.52
TestLifecycleStart
Function · 0.52
TestLifecycleStop
Function · 0.52
TestApp
Function · 0.52