2024-01-23 16:24:16 +08:00
|
|
|
package faas
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
"fmt"
|
2024-04-16 15:11:23 +08:00
|
|
|
|
2024-03-26 14:54:50 +08:00
|
|
|
"github.com/aceld/kis-flow/kis"
|
2024-01-23 16:24:16 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
// 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() {
|
2024-04-15 17:50:02 +08:00
|
|
|
str := fmt.Sprintf("In FuncName = %s, FuncId = %s, row = %s", flow.GetThisFuncConf().FName, flow.GetThisFunction().GetID(), row)
|
2024-01-23 16:24:16 +08:00
|
|
|
fmt.Println(str)
|
|
|
|
}
|
|
|
|
|
|
|
|
return flow.Next(kis.ActionForceEntryNext)
|
|
|
|
}
|