Documentation
¶
Index ¶
- Constants
- Variables
- type AnalyzerFactory
- type Application
- type ComponentsFactory
- func (c *ComponentsFactory) ConstructConfig(viper *viper.Viper) error
- func (c *ComponentsFactory) RegisterAnalyzer(name string, f NewAnalyzerFunc, config interface{})
- func (c *ComponentsFactory) RegisterExporter(name string, f NewExporterFunc, config interface{})
- func (c *ComponentsFactory) RegisterProcessor(name string, f NewProcessorFunc, config interface{})
- func (c *ComponentsFactory) RegisterReceiver(name string, f NewReceiverFunc, config interface{})
- type ExporterFactory
- type NewAnalyzerFunc
- type NewExporterFunc
- type NewProcessorFunc
- type NewReceiverFunc
- type ProcessorFactory
- type ReceiverFactory
Constants ¶
View Source
const ( ReceiversKey = "receivers" AnalyzersKey = "analyzers" ProcessorsKey = "processors" ExportersKey = "exporters" )
Variables ¶
View Source
var ComponentsKeyMap = []string{ReceiversKey, AnalyzersKey, ProcessorsKey, ExportersKey}
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 NewExporterFunc ¶
type NewExporterFunc func(cfg interface{}, telemetry *component.TelemetryTools) exporter.Exporter
type NewProcessorFunc ¶
type NewReceiverFunc ¶
type ProcessorFactory ¶
type ProcessorFactory struct {
NewFunc NewProcessorFunc
Config interface{}
}
type ReceiverFactory ¶
type ReceiverFactory struct {
NewFunc NewReceiverFunc
Config interface{}
}
Click to show internal directories.
Click to hide internal directories.