SetPrepBatch sets the function to generate batch parameters.
(f func(ctx *PfContext, params map[string]any) ([]map[string]any, error))
| 737 | |
| 738 | // SetPrepBatch sets the function to generate batch parameters. |
| 739 | func (bf *BatchFlow) SetPrepBatch(f func(ctx *PfContext, params map[string]any) ([]map[string]any, error)) *BatchFlow { |
| 740 | bf.PrepBatchFunc = f |
| 741 | return bf |
| 742 | } |
| 743 | |
| 744 | // SetPostBatch sets the function to run after all batches complete. |
| 745 | func (bf *BatchFlow) SetPostBatch(f func(ctx *PfContext, params map[string]any, batchPrepResult []map[string]any) (string, error)) *BatchFlow { |
no outgoing calls