SetPost sets the PostFunc.
(f func(ctx *PfContext, params map[string]any, prepResult any, execResult any) (string, error))
| 239 | |
| 240 | // SetPost sets the PostFunc. |
| 241 | func (n *Node) SetPost(f func(ctx *PfContext, params map[string]any, prepResult any, execResult any) (string, error)) *Node { |
| 242 | n.PostFunc = f |
| 243 | return n |
| 244 | } |
| 245 | |
| 246 | // SetFallback sets the ExecFallbackFunc. |
| 247 | func (n *Node) SetFallback(f func(ctx *PfContext, params map[string]any, prepResult any, lastErr error) (any, error)) *Node { |
no outgoing calls