Processors

Processors are methods for processing data.

Processors are built into Substation applications to enable data transformation, but can also be imported into any Go project that requires data transform capabilities. They can transform data as singletons (individual items) or batches (groups of items).

Settings

Each processor is unique and defines its own options, but there are common settings shared across all processors:

  • condition: an optional condition that enables data processing for many items
  • key: retrieves a value from an object for processing
  • set_key: inserts a processed value into an object
  • ignore_close: overrides attempts to close a processor
  • ignore_errors: overrides returning errors from a processor

If the processor supports interpreting data types, then key and set_key can be omitted.