componenthelper

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

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(*baseSettings)

Option represents the possible options for New.

func WithShutdown added in v0.24.0

func WithShutdown(shutdown ShutdownFunc) Option

WithShutdown overrides the default Shutdown function for a processor. The default shutdown function does nothing and always returns nil.

func WithStart added in v0.24.0

func WithStart(start StartFunc) Option

WithStart overrides the default Start function for a processor. The default shutdown function does nothing and always returns nil.

type ShutdownFunc added in v0.25.0

type ShutdownFunc func(context.Context) error

ShutdownFunc specifies the function invoked when the exporter is being shutdown.

type StartFunc added in v0.25.0

type StartFunc func(context.Context, component.Host) error

StartFunc specifies the function invoked when the exporter is being started.

Jump to

Keyboard shortcuts

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