Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewComponent ¶
func NewComponent(s *ComponentSettings) component.Component
NewComponent returns a component.Component that calls the given Start and Shutdown.
Types ¶
type ComponentSettings ¶
ComponentSettings represents a settings struct to create components.
func DefaultComponentSettings ¶
func DefaultComponentSettings() *ComponentSettings
DefaultComponentSettings returns the default settings for a component. The Start and Shutdown are no-op.
Click to show internal directories.
Click to hide internal directories.