mirror of
https://github.com/aceld/kis-flow.git
synced 2025-01-22 23:20:24 +08:00
commit
313a42ca3c
@ -311,6 +311,10 @@ func (flow *KisFlow) GetName() string {
|
||||
return flow.Name
|
||||
}
|
||||
|
||||
func (flow *KisFlow) GetId() string {
|
||||
return flow.Id
|
||||
}
|
||||
|
||||
func (flow *KisFlow) GetThisFunction() kis.Function {
|
||||
return flow.ThisFunction
|
||||
}
|
||||
|
@ -53,4 +53,6 @@ type Flow interface {
|
||||
GetFuncParamsAllFuncs() map[string]config.FParam
|
||||
// Fork 得到Flow的一个副本(深拷贝)
|
||||
Fork(ctx context.Context) Flow
|
||||
// GetId 得到Flow的Id
|
||||
GetId() string
|
||||
}
|
||||
|
@ -6,7 +6,7 @@ import (
|
||||
"github.com/aceld/kis-flow/kis"
|
||||
)
|
||||
|
||||
// type CaaS func(context.Context, Connector, Function, Flow, interface{}) error
|
||||
// type CaaS func(context.Context, Connector, Function, Flow, interface{}) (interface{}, error)
|
||||
|
||||
func CaasDemoHanler1(ctx context.Context, conn kis.Connector, fn kis.Function, flow kis.Flow, args interface{}) (interface{}, error) {
|
||||
fmt.Printf("===> In CaasDemoHanler1: flowName: %s, cName:%s, fnName:%s, mode:%s\n",
|
||||
|
@ -14,7 +14,7 @@ func InitConnDemo1(connector kis.Connector) error {
|
||||
|
||||
fmt.Println(connConf)
|
||||
|
||||
// init connector , 如 初始化数据库链接等
|
||||
// init connector
|
||||
|
||||
return nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user