Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory(
	cfgType configmodels.Type,
	createDefaultConfig CreateDefaultConfig,
	createServiceExtension CreateServiceExtension,
	options ...FactoryOption) component.ExtensionFactory

NewFactory returns a component.ExtensionFactory.

Types

type CreateDefaultConfig

type CreateDefaultConfig func() configmodels.Extension

CreateDefaultConfig is the equivalent of component.ExtensionFactory.CreateDefaultConfig()

type CreateServiceExtension

type CreateServiceExtension func(context.Context, component.ExtensionCreateParams, configmodels.Extension) (component.ServiceExtension, error)

CreateServiceExtension is the equivalent of component.ExtensionFactory.CreateExtension()

type FactoryOption

type FactoryOption func(o *factory)

FactoryOption apply changes to ExporterOptions.

func WithCustomUnmarshaler

func WithCustomUnmarshaler(customUnmarshaler component.CustomUnmarshaler) FactoryOption

WithCustomUnmarshaler implements component.ConfigUnmarshaler.

Source Files