package
3.65.0
Repository: https://github.com/jeffail/benthos.git
Documentation: pkg.go.dev

# Functions

GetInferenceCandidates checks a generic config structure (YAML or JSON) and, if an explicit type value is not found, returns a list of candidate types by walking the root objects field names.
MarshalYAML marshals a structure into YAML with consistent formatting across all Benthos components.
SanitizeComponent performs a generic sanitation on a component config, where a type field describes the type of the component, and the only other fields returned in the sanitized result are under the namespace of the type.

# Type aliases

SanitForYAML a map to be embedded within a parent object for YAML marshalling.
Sanitised is a general map[string]interface{} type that tries to marshal into both YAML and JSON in a way that ensure the 'type' field is always first.