Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*options)
Option configures Run.
func WithContext ¶
WithContext sets the base context Run derives its signal-aware lifecycle context from. Defaults to context.Background().
func WithManagerOptions ¶
func WithManagerOptions(opts ...modulex.ManagerOption) Option
WithManagerOptions passes additional modulex.ManagerOption values through to modulex.NewManager.
func WithSetup ¶
WithSetup registers a hook that runs against the constructed Manager after NewManager but before modules are registered and initialized.
func WithShutdownTimeout ¶
WithShutdownTimeout bounds the final StopModules call. Defaults to 15 seconds.
func WithSignals ¶
WithSignals overrides the OS signals that trigger shutdown. Defaults to os.Interrupt and syscall.SIGTERM.
Click to show internal directories.
Click to hide internal directories.