configunmarshaler

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadReceiver

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

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

Types

type ConfigUnmarshaler

type ConfigUnmarshaler struct{}

func New

func New() ConfigUnmarshaler

New returns a default ConfigUnmarshaler that unmarshalls every component's configuration using the custom unmarshaler if present or default strict unmarshaler otherwise.

func (ConfigUnmarshaler) Unmarshal

func (ConfigUnmarshaler) Unmarshal(v *confmap.Conf, factories component.Factories) (*config.Config, error)

Unmarshal the config.Config from a confmap.Conf. After the config is unmarshalled, `Validate()` must be called to validate.

Jump to

Keyboard shortcuts

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