# Packages
Package mapstriface contains utilities for transforming map[string]interface{} objects
into metricbeat events.
Package mapstrstr contains utilities for transforming map[string]string objects
into metricbeat events.
# Functions
AllRequired considers any missing field as an error, except if explicitly set as optional.
FailOnRequired considers missing fields as an error only if they are set as required.
IgnoreAllErrors set the enable all errors flag.
NewKeyNotFoundError builds a KeyNotFoundError.
NewWrongFormatError builds a new WrongFormatError.
NotFoundKeys calls a function with the list of missing keys as parameter.
Optional sets the optional flag, that suppresses the error in case the key doesn't exist.
Required sets the required flag, that provokes an error in case the key doesn't exist, even if other missing keys can be ignored.
setOptions adds the optional flags to the Conv object.
# Variables
DefaultApplyOptions are the default options for Apply().
# Structs
A Conv object represents a conversion mechanism from the data map to the event map.
KeyNotFoundError is an error happening when a field key is not found.
WrongFormatError is an error happening when a field format is incorrect.
# Type aliases
ApplyOption modifies the result of Apply.
Converter function type.
implements Mapper interface for structure.
Schema describes how a map[string]interface{} object can be parsed and converted into an event.
SchemaOption is for adding optional parameters to the conversion functions.