2024-01-09 17:30:58 +08:00
|
|
|
package faas
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
"fmt"
|
|
|
|
"kis-flow/kis"
|
|
|
|
)
|
|
|
|
|
|
|
|
// type FaaS func(context.Context, Flow) error
|
|
|
|
|
|
|
|
func FuncDemo3Handler(ctx context.Context, flow kis.Flow) error {
|
|
|
|
fmt.Println("---> Call funcName3Handler ----")
|
2024-01-26 17:27:29 +08:00
|
|
|
fmt.Printf("Params = %+v\n", flow.GetFuncParamAll())
|
2024-01-09 17:30:58 +08:00
|
|
|
|
|
|
|
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 nil
|
|
|
|
}
|