Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunShutdownHooks ¶
func RunShutdownHooks(ctx context.Context, hooks []ShutdownHook) error
func RunStartupHooks ¶
func RunStartupHooks(hooks []StartupHook) error
Types ¶
type ShutdownHook ¶
type StartupHook ¶
type StartupHook interface {
OnStartup() error
}
Click to show internal directories.
Click to hide internal directories.