===== FunctionStep =====
| 166 | // ===== FunctionStep ===== |
| 167 | |
| 168 | type FunctionStep struct { |
| 169 | id string |
| 170 | name string |
| 171 | description string |
| 172 | executor func(ctx context.Context, input *StepInput) (*StepOutput, error) |
| 173 | config *StepConfig |
| 174 | } |
| 175 | |
| 176 | func NewFunctionStep(name string, executor func(ctx context.Context, input *StepInput) (*StepOutput, error)) *FunctionStep { |
| 177 | return &FunctionStep{ |
nothing calls this directly
no outgoing calls
no test coverage detected