MCPcopy
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.
37type 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

TestWindowsMinimalAppFunction · 0.65
AppendMethod · 0.65
buildHookInstallerMethod · 0.65
TestTimeoutOptionsFunction · 0.65
TestAppRunTimeoutFunction · 0.65
TestAppStartFunction · 0.65
TestAppStopFunction · 0.65
TestHookConstructorsFunction · 0.65
TestShutdownThenWaitFunction · 0.65
NewMuxFunction · 0.65

Implementers 3

lifecycleWrapperlifecycle.go
Lifecycleinternal/lifecycle/lifecycle.go
Lifecyclefxtest/lifecycle.go

Calls

no outgoing calls

Tested by 12

TestWindowsMinimalAppFunction · 0.52
TestTimeoutOptionsFunction · 0.52
TestAppRunTimeoutFunction · 0.52
TestAppStartFunction · 0.52
TestAppStopFunction · 0.52
TestHookConstructorsFunction · 0.52
TestShutdownThenWaitFunction · 0.52
NewMuxFunction · 0.52
TestLifecycleStartFunction · 0.52
TestLifecycleStopFunction · 0.52
TestAppFunction · 0.52