Documentation ¶
Overview ¶
Package componenthelper assists with the creation of a new component.Component.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶ added in v0.24.0
type Option func(*baseComponent)
Option represents the possible options for New.
func WithShutdown ¶ added in v0.24.0
func WithShutdown(shutdownFunc ShutdownFunc) Option
WithShutdown overrides the default `Shutdown` function for a component.Component. The default always returns nil.
type ShutdownFunc ¶ added in v0.25.0
ShutdownFunc specifies the function invoked when the component.Component is being shutdown.
Click to show internal directories.
Click to hide internal directories.