easegress-io/easegress

Add data builder

caoshengdong opened this issue · 1 comments

Add a data builder to support data transformation from one stage to another.

DataBuilder is used to manipulate and store data. The data from the previous filter can be transformed and stored in the context so that the data can be used in subsequent filters.

Configuration

Name Type Description Required
template string template to create data, please refer the template for more information Yes
dataKey string key to store data Yes
leftDelim string left action delimiter of the template, default is {{ No
rightDelim string right action delimiter of the template, default is }} No

Results

Value Description
buildErr Error happens when build the result.

I've updated the template filed to be required.