componenthelper

package
v0.47.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

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

func New added in v0.24.0

func New(options ...Option) component.Component

New returns a component.Component configured with the provided options.

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.

func WithStart added in v0.24.0

func WithStart(startFunc component.StartFunc) Option

WithStart overrides the default `Start` function for a component.Component. The default always returns nil.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL