SetPrep sets the PrepFunc.
(f func(ctx *PfContext, params map[string]any) (any, error))
| 227 | |
| 228 | // SetPrep sets the PrepFunc. |
| 229 | func (n *Node) SetPrep(f func(ctx *PfContext, params map[string]any) (any, error)) *Node { |
| 230 | n.PrepFunc = f |
| 231 | return n |
| 232 | } |
| 233 | |
| 234 | // SetExec sets the ExecFunc. |
| 235 | func (n *Node) SetExec(f func(ctx *PfContext, params map[string]any, prepResult any) (any, error)) *Node { |
no outgoing calls