MCPcopy Create free account
hub / github.com/astercloud/aster / FunctionStep

Struct FunctionStep

pkg/workflow/step.go:168–174  ·  view source on GitHub ↗

===== FunctionStep =====

Source from the content-addressed store, hash-verified

166// ===== FunctionStep =====
167
168type 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
176func NewFunctionStep(name string, executor func(ctx context.Context, input *StepInput) (*StepOutput, error)) *FunctionStep {
177 return &FunctionStep{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected