SetPrep sets the PrepFunc. Expects a function returning []any.
(f func(ctx *PfContext, params map[string]any) ([]any, error))
| 387 | |
| 388 | // SetPrep sets the PrepFunc. Expects a function returning []any. |
| 389 | func (bn *BatchNode) SetPrep(f func(ctx *PfContext, params map[string]any) ([]any, error)) *BatchNode { |
| 390 | bn.PrepFunc = f |
| 391 | return bn |
| 392 | } |
| 393 | |
| 394 | // SetExecItem sets the ExecItemFunc for processing individual items. |
| 395 | func (bn *BatchNode) SetExecItem(f func(ctx *PfContext, params map[string]any, item any) (any, error)) *BatchNode { |
nothing calls this directly
no outgoing calls
no test coverage detected