Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

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

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

Types

type Option

type Option func(*baseSettings)

Option represents the possible options for New.

func WithShutdown

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

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

type ShutdownFunc func(context.Context) error

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

type StartFunc

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

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

Source Files