configloader

package
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package configloader implements configuration loading from a config.Parser. The implementation relies on registered factories that allow creating default configuration for each type of receiver/exporter/processor.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(v *configparser.Parser, factories component.Factories) (*config.Config, error)

Load loads a Config from Parser. After loading the config, `Validate()` must be called to validate.

func LoadReceiver

func LoadReceiver(componentConfig *configparser.Parser, id config.ComponentID, factory component.ReceiverFactory) (config.Receiver, error)

LoadReceiver loads a receiver config from componentConfig using the provided factories.

Types

This section is empty.

Jump to

Keyboard shortcuts

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