package
2.15.1+incompatible
Repository: https://github.com/jeffail/benthos.git
Documentation: pkg.go.dev
# Functions
ContainsEnvVariables returns true if inBytes contains environment variable replace patterns.
ContainsFunctionVariables returns true if inBytes contains function variable replace patterns.
NewInterpolatedBytes returns a type that evaluates function interpolations on a provided byte slice each time Get is called.
NewInterpolatedString returns a type that evaluates function interpolations on a provided string each time Get is called.
ReplaceEnvVariables will search a blob of data for the pattern `${FOO:bar}`, where `FOO` is an environment variable name and `bar` is a default value.
ReplaceFunctionVariables will search a blob of data for the pattern `${!foo}`, where `foo` is a function name.
ReplaceFunctionVariablesEscaped will search a blob of data for the pattern `${!foo}`, where `foo` is a function name.
# Structs
InterpolatedBytes holds a byte slice that potentially has interpolation functions.
InterpolatedString holds a string that potentially has interpolation functions.
# Interfaces
Message is an interface type to be given to a function interpolator, it allows the function to resolve fields and metadata from a message.