kis-flow/test/faas/faas_no_result.go
2024-04-16 15:11:23 +08:00

22 lines
483 B
Go

package faas
import (
"context"
"fmt"
"github.com/aceld/kis-flow/kis"
)
// type FaaS func(context.Context, Flow) error
func NoResultFuncHandler(ctx context.Context, flow kis.Flow) error {
fmt.Println("---> Call NoResultFuncHandler ----")
for _, row := range flow.Input() {
str := fmt.Sprintf("In FuncName = %s, FuncId = %s, row = %s", flow.GetThisFuncConf().FName, flow.GetThisFunction().GetID(), row)
fmt.Println(str)
}
return flow.Next(kis.ActionForceEntryNext)
}