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

Function NewLoopStep

pkg/workflow/step.go:382–396  ·  view source on GitHub ↗
(name string, body Step, maxIterations int)

Source from the content-addressed store, hash-verified

380}
381
382func NewLoopStep(name string, body Step, maxIterations int) *LoopStep {
383 return &LoopStep{
384 id: uuid.New().String(),
385 name: name,
386 body: body,
387 maxIterations: maxIterations,
388 config: &StepConfig{
389 Name: name,
390 Type: StepTypeLoop,
391 MaxRetries: 1,
392 Timeout: 30 * time.Minute,
393 SkipOnError: false,
394 },
395 }
396}
397
398func (s *LoopStep) ID() string { return s.id }
399func (s *LoopStep) Name() string { return s.name }

Callers 2

mainFunction · 0.92
testAllStepTypesFunction · 0.92

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected