application

package
v0.0.0-...-51da36d Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReceiversKey  = "receivers"
	AnalyzersKey  = "analyzers"
	ProcessorsKey = "processors"
	ExportersKey  = "exporters"
)

Variables

Functions

This section is empty.

Types

type AnalyzerFactory

type AnalyzerFactory struct {
	NewFunc NewAnalyzerFunc
	Config  interface{}
}

type Application

type Application struct {
	// contains filtered or unexported fields
}

func New

func New() (*Application, error)

func (*Application) Run

func (a *Application) Run() error

func (*Application) Shutdown

func (a *Application) Shutdown() error

type ComponentsFactory

type ComponentsFactory struct {
	Receivers  map[string]ReceiverFactory
	Analyzers  map[string]AnalyzerFactory
	Processors map[string]ProcessorFactory
	Exporters  map[string]ExporterFactory
}

func NewComponentsFactory

func NewComponentsFactory() *ComponentsFactory

func (*ComponentsFactory) ConstructConfig

func (c *ComponentsFactory) ConstructConfig(viper *viper.Viper) error

func (*ComponentsFactory) RegisterAnalyzer

func (c *ComponentsFactory) RegisterAnalyzer(
	name string,
	f NewAnalyzerFunc,
	config interface{},
)

func (*ComponentsFactory) RegisterExporter

func (c *ComponentsFactory) RegisterExporter(
	name string,
	f NewExporterFunc,
	config interface{},
)

func (*ComponentsFactory) RegisterProcessor

func (c *ComponentsFactory) RegisterProcessor(
	name string,
	f NewProcessorFunc,
	config interface{},
)

func (*ComponentsFactory) RegisterReceiver

func (c *ComponentsFactory) RegisterReceiver(
	name string,
	f NewReceiverFunc,
	config interface{},
)

type ExporterFactory

type ExporterFactory struct {
	NewFunc NewExporterFunc
	Config  interface{}
}

type NewAnalyzerFunc

type NewAnalyzerFunc func(cfg interface{}, telemetry *component.TelemetryTools, consumers []consumer.Consumer) analyzer.Analyzer

type NewExporterFunc

type NewExporterFunc func(cfg interface{}, telemetry *component.TelemetryTools) exporter.Exporter

type NewProcessorFunc

type NewProcessorFunc func(cfg interface{}, telemetry *component.TelemetryTools, consumer consumer.Consumer) processor.Processor

type NewReceiverFunc

type NewReceiverFunc func(cfg interface{}, telemetry *component.TelemetryTools, analyzerManager *analyzer.Manager) receiver.Receiver

type ProcessorFactory

type ProcessorFactory struct {
	NewFunc NewProcessorFunc
	Config  interface{}
}

type ReceiverFactory

type ReceiverFactory struct {
	NewFunc NewReceiverFunc
	Config  interface{}
}

Jump to

Keyboard shortcuts

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