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 component.ShutdownFunc) Option
WithShutdown overrides the default `Shutdown` function for a component.Component. The default always returns nil.
type ShutdownFunc
deprecated
added in
v0.25.0
type ShutdownFunc = component.ShutdownFunc
Deprecated: [v0.46.0] use component.ShutdownFunc.
Click to show internal directories.
Click to hide internal directories.