Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewField ¶
func NewField(expr string) (*field.Expression, error)
NewField attempts to parse and create a dynamic field expression from a string. If the expression is invalid an error is returned.
When a parsing error occurs the returned error will be a *parser.Error type, which allows you to gain positional and structured error messages.
func NewFieldWithContext ¶ added in v3.51.0
NewFieldWithContext attempts to parse and create a dynamic field expression from a string using a provided context to determine available functions, methods and features. If the expression is invalid an error is returned.
When a parsing error occurs the returned error will be a *parser.Error type, which allows you to gain positional and structured error messages.
func NewMapping ¶
NewMapping attempts to parse and create a Bloblang mapping from a string. If the mapping was read from a file the path should be provided in order to resolve relative imports, otherwise the path can be left empty.
When a parsing error occurs the returned error may be a *parser.Error type, which allows you to gain positional and structured error messages.
func NewMappingWithContext ¶ added in v3.51.0
NewMappingWithContext attempts to parse and create a Bloblang mapping from a string using a specific context for determining available functions, methods and features. If the mapping was read from a file the path should be provided in order to resolve relative imports, otherwise the path can be left empty.
When a parsing error occurs the returned error may be a *parser.Error type, which allows you to gain positional and structured error messages.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package field implements a bloblang interpolation function templating syntax used in some dynamic fields within Benthos.
|
Package field implements a bloblang interpolation function templating syntax used in some dynamic fields within Benthos. |
Package mapping provides a parser for the full bloblang mapping spec.
|
Package mapping provides a parser for the full bloblang mapping spec. |
Package query provides a parser for the right-hand side query part of the bloblang spec.
|
Package query provides a parser for the right-hand side query part of the bloblang spec. |