Documentation ¶
Overview ¶
Package configunmarshaler implements configuration unmarshalling from a config.Map. 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 LoadReceiver ¶
func LoadReceiver(componentConfig *config.Map, 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 interface { // Unmarshal the configuration from the given parser and factories. Unmarshal(v *config.Map, factories component.Factories) (*config.Config, error) }
ConfigUnmarshaler is the interface that unmarshalls the collector configuration from the config.Map.
func NewDefault ¶
func NewDefault() ConfigUnmarshaler
NewDefault returns a default ConfigUnmarshaler that unmarshalls every configuration using the custom unmarshaler if present or default to strict
Click to show internal directories.
Click to hide internal directories.