MCPcopy
hub / github.com/marmotedu/iam / New

Function New

pkg/shutdown/shutdown.go:231–236  ·  view source on GitHub ↗

New initializes GracefulShutdown.

()

Source from the content-addressed store, hash-verified

229
230// New initializes GracefulShutdown.
231func New() *GracefulShutdown {
232 return &GracefulShutdown{
233 callbacks: make([]ShutdownCallback, 0, 10),
234 managers: make([]ShutdownManager, 0, 3),
235 }
236}
237
238// Start calls Start on all added ShutdownManagers. The ShutdownManagers
239// start to listen to shutdown requests. Returns an error if any ShutdownManagers

Callers 13

createAuthzServerFunction · 0.92
createWatcherServerFunction · 0.92
createAPIServerFunction · 0.92
TestCallbacksGetCalledFunction · 0.70
TestStartGetsCalledFunction · 0.70
TestErrorHandlerDirectFunction · 0.70

Calls

no outgoing calls