mirror of
https://github.com/aceld/kis-flow.git
synced 2025-01-23 07:30:23 +08:00
commit
36e0e94cb0
@ -3,7 +3,7 @@ package config
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"kis-flow/common"
|
||||
"github.com/aceld/kis-flow/common"
|
||||
)
|
||||
|
||||
// KisConnConfig KisConnector 策略配置
|
||||
|
@ -1,6 +1,6 @@
|
||||
package config
|
||||
|
||||
import "kis-flow/common"
|
||||
import "github.com/aceld/kis-flow/common"
|
||||
|
||||
// KisFlowFunctionParam 一个Flow配置中Function的Id及携带固定配置参数
|
||||
type KisFlowFunctionParam struct {
|
||||
|
@ -2,8 +2,8 @@ package config
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"kis-flow/common"
|
||||
"kis-flow/log"
|
||||
"github.com/aceld/kis-flow/common"
|
||||
"github.com/aceld/kis-flow/log"
|
||||
)
|
||||
|
||||
// FParam 在当前Flow中Function定制固定配置参数类型
|
||||
|
@ -2,10 +2,10 @@ package conn
|
||||
|
||||
import (
|
||||
"context"
|
||||
"kis-flow/common"
|
||||
"kis-flow/config"
|
||||
"kis-flow/id"
|
||||
"kis-flow/kis"
|
||||
"github.com/aceld/kis-flow/common"
|
||||
"github.com/aceld/kis-flow/config"
|
||||
"github.com/aceld/kis-flow/id"
|
||||
"github.com/aceld/kis-flow/kis"
|
||||
"sync"
|
||||
)
|
||||
|
||||
|
@ -3,8 +3,8 @@ package file
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"kis-flow/common"
|
||||
"kis-flow/kis"
|
||||
"github.com/aceld/kis-flow/common"
|
||||
"github.com/aceld/kis-flow/kis"
|
||||
"os"
|
||||
|
||||
"gopkg.in/yaml.v3"
|
||||
|
@ -3,11 +3,11 @@ package file
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"kis-flow/common"
|
||||
"kis-flow/config"
|
||||
"kis-flow/flow"
|
||||
"kis-flow/kis"
|
||||
"kis-flow/metrics"
|
||||
"github.com/aceld/kis-flow/common"
|
||||
"github.com/aceld/kis-flow/config"
|
||||
"github.com/aceld/kis-flow/flow"
|
||||
"github.com/aceld/kis-flow/kis"
|
||||
"github.com/aceld/kis-flow/metrics"
|
||||
"os"
|
||||
"path"
|
||||
"path/filepath"
|
||||
|
@ -3,15 +3,15 @@ package flow
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"github.com/aceld/kis-flow/common"
|
||||
"github.com/aceld/kis-flow/config"
|
||||
"github.com/aceld/kis-flow/conn"
|
||||
"github.com/aceld/kis-flow/function"
|
||||
"github.com/aceld/kis-flow/id"
|
||||
"github.com/aceld/kis-flow/kis"
|
||||
"github.com/aceld/kis-flow/log"
|
||||
"github.com/aceld/kis-flow/metrics"
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
"kis-flow/common"
|
||||
"kis-flow/config"
|
||||
"kis-flow/conn"
|
||||
"kis-flow/function"
|
||||
"kis-flow/id"
|
||||
"kis-flow/kis"
|
||||
"kis-flow/log"
|
||||
"kis-flow/metrics"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"kis-flow/kis"
|
||||
"github.com/aceld/kis-flow/kis"
|
||||
)
|
||||
|
||||
// dealAction 处理Action,决定接下来Flow的流程走向
|
||||
|
@ -4,11 +4,11 @@ import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/aceld/kis-flow/common"
|
||||
"github.com/aceld/kis-flow/config"
|
||||
"github.com/aceld/kis-flow/log"
|
||||
"github.com/aceld/kis-flow/metrics"
|
||||
"github.com/patrickmn/go-cache"
|
||||
"kis-flow/common"
|
||||
"kis-flow/config"
|
||||
"kis-flow/log"
|
||||
"kis-flow/metrics"
|
||||
"time"
|
||||
)
|
||||
|
||||
|
@ -3,10 +3,10 @@ package function
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"kis-flow/common"
|
||||
"kis-flow/config"
|
||||
"kis-flow/id"
|
||||
"kis-flow/kis"
|
||||
"github.com/aceld/kis-flow/common"
|
||||
"github.com/aceld/kis-flow/config"
|
||||
"github.com/aceld/kis-flow/id"
|
||||
"github.com/aceld/kis-flow/kis"
|
||||
"sync"
|
||||
)
|
||||
|
||||
|
@ -2,8 +2,8 @@ package function
|
||||
|
||||
import (
|
||||
"context"
|
||||
"kis-flow/kis"
|
||||
"kis-flow/log"
|
||||
"github.com/aceld/kis-flow/kis"
|
||||
"github.com/aceld/kis-flow/log"
|
||||
)
|
||||
|
||||
type KisFunctionC struct {
|
||||
|
@ -2,8 +2,8 @@ package function
|
||||
|
||||
import (
|
||||
"context"
|
||||
"kis-flow/kis"
|
||||
"kis-flow/log"
|
||||
"github.com/aceld/kis-flow/kis"
|
||||
"github.com/aceld/kis-flow/log"
|
||||
)
|
||||
|
||||
type KisFunctionE struct {
|
||||
|
@ -2,8 +2,8 @@ package function
|
||||
|
||||
import (
|
||||
"context"
|
||||
"kis-flow/kis"
|
||||
"kis-flow/log"
|
||||
"github.com/aceld/kis-flow/kis"
|
||||
"github.com/aceld/kis-flow/log"
|
||||
)
|
||||
|
||||
type KisFunctionL struct {
|
||||
|
@ -2,8 +2,8 @@ package function
|
||||
|
||||
import (
|
||||
"context"
|
||||
"kis-flow/kis"
|
||||
"kis-flow/log"
|
||||
"github.com/aceld/kis-flow/kis"
|
||||
"github.com/aceld/kis-flow/log"
|
||||
)
|
||||
|
||||
type KisFunctionS struct {
|
||||
|
@ -2,8 +2,8 @@ package function
|
||||
|
||||
import (
|
||||
"context"
|
||||
"kis-flow/kis"
|
||||
"kis-flow/log"
|
||||
"github.com/aceld/kis-flow/kis"
|
||||
"github.com/aceld/kis-flow/log"
|
||||
)
|
||||
|
||||
type KisFunctionV struct {
|
||||
|
@ -1,8 +1,8 @@
|
||||
package id
|
||||
|
||||
import (
|
||||
"github.com/aceld/kis-flow/common"
|
||||
"github.com/google/uuid"
|
||||
"kis-flow/common"
|
||||
"strings"
|
||||
)
|
||||
|
||||
|
@ -2,7 +2,7 @@ package kis
|
||||
|
||||
import (
|
||||
"context"
|
||||
"kis-flow/config"
|
||||
"github.com/aceld/kis-flow/config"
|
||||
)
|
||||
|
||||
type Connector interface {
|
||||
|
@ -2,8 +2,8 @@ package kis
|
||||
|
||||
import (
|
||||
"context"
|
||||
"kis-flow/common"
|
||||
"kis-flow/config"
|
||||
"github.com/aceld/kis-flow/common"
|
||||
"github.com/aceld/kis-flow/config"
|
||||
"time"
|
||||
)
|
||||
|
||||
|
@ -2,7 +2,7 @@ package kis
|
||||
|
||||
import (
|
||||
"context"
|
||||
"kis-flow/config"
|
||||
"github.com/aceld/kis-flow/config"
|
||||
)
|
||||
|
||||
// Function 流式计算基础计算模块,KisFunction是一条流式计算的基本计算逻辑单元,
|
||||
|
@ -4,8 +4,8 @@ import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"kis-flow/common"
|
||||
"kis-flow/log"
|
||||
"github.com/aceld/kis-flow/common"
|
||||
"github.com/aceld/kis-flow/log"
|
||||
"reflect"
|
||||
"sync"
|
||||
)
|
||||
|
@ -2,7 +2,7 @@ package kis
|
||||
|
||||
import (
|
||||
"context"
|
||||
"kis-flow/common"
|
||||
"github.com/aceld/kis-flow/common"
|
||||
)
|
||||
|
||||
// FaaS 定义移植到 faas.go 中
|
||||
|
@ -1,8 +1,8 @@
|
||||
package kis
|
||||
|
||||
import (
|
||||
"kis-flow/common"
|
||||
"kis-flow/serialize"
|
||||
"github.com/aceld/kis-flow/common"
|
||||
"github.com/aceld/kis-flow/serialize"
|
||||
"reflect"
|
||||
)
|
||||
|
||||
|
@ -1,11 +1,11 @@
|
||||
package metrics
|
||||
|
||||
import (
|
||||
"github.com/aceld/kis-flow/common"
|
||||
"github.com/aceld/kis-flow/config"
|
||||
"github.com/aceld/kis-flow/log"
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
"github.com/prometheus/client_golang/prometheus/promhttp"
|
||||
"kis-flow/common"
|
||||
"kis-flow/config"
|
||||
"kis-flow/log"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
|
@ -7,7 +7,7 @@ package serialize
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"kis-flow/common"
|
||||
"github.com/aceld/kis-flow/common"
|
||||
"reflect"
|
||||
)
|
||||
|
||||
|
@ -3,7 +3,7 @@ package caas
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"kis-flow/kis"
|
||||
"github.com/aceld/kis-flow/kis"
|
||||
)
|
||||
|
||||
// type CaaS func(context.Context, Connector, Function, Flow, interface{}) error
|
||||
|
@ -2,7 +2,7 @@ package caas
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"kis-flow/kis"
|
||||
"github.com/aceld/kis-flow/kis"
|
||||
)
|
||||
|
||||
// type ConnInit func(conn Connector) error
|
||||
|
@ -3,7 +3,7 @@ package faas
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"kis-flow/kis"
|
||||
"github.com/aceld/kis-flow/kis"
|
||||
)
|
||||
|
||||
// type FaaS func(context.Context, Flow) error
|
||||
|
@ -3,7 +3,7 @@ package faas
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"kis-flow/kis"
|
||||
"github.com/aceld/kis-flow/kis"
|
||||
)
|
||||
|
||||
// type FaaS func(context.Context, Flow) error
|
||||
|
@ -3,7 +3,7 @@ package faas
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"kis-flow/kis"
|
||||
"github.com/aceld/kis-flow/kis"
|
||||
)
|
||||
|
||||
// type FaaS func(context.Context, Flow) error
|
||||
|
@ -3,8 +3,8 @@ package faas
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"kis-flow/kis"
|
||||
"kis-flow/log"
|
||||
"github.com/aceld/kis-flow/kis"
|
||||
"github.com/aceld/kis-flow/log"
|
||||
)
|
||||
|
||||
// type FaaS func(context.Context, Flow) error
|
||||
|
@ -3,7 +3,7 @@ package faas
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"kis-flow/kis"
|
||||
"github.com/aceld/kis-flow/kis"
|
||||
)
|
||||
|
||||
// type FaaS func(context.Context, Flow) error
|
||||
|
@ -3,7 +3,7 @@ package faas
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"kis-flow/kis"
|
||||
"github.com/aceld/kis-flow/kis"
|
||||
)
|
||||
|
||||
// type FaaS func(context.Context, Flow) error
|
||||
|
@ -3,7 +3,7 @@ package faas
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"kis-flow/kis"
|
||||
"github.com/aceld/kis-flow/kis"
|
||||
)
|
||||
|
||||
// type FaaS func(context.Context, Flow) error
|
||||
|
@ -3,7 +3,7 @@ package faas
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"kis-flow/kis"
|
||||
"github.com/aceld/kis-flow/kis"
|
||||
)
|
||||
|
||||
// type FaaS func(context.Context, Flow) error
|
||||
|
@ -2,9 +2,9 @@ package faas
|
||||
|
||||
import (
|
||||
"context"
|
||||
"kis-flow/kis"
|
||||
"kis-flow/serialize"
|
||||
"kis-flow/test/proto"
|
||||
"github.com/aceld/kis-flow/kis"
|
||||
"github.com/aceld/kis-flow/serialize"
|
||||
"github.com/aceld/kis-flow/test/proto"
|
||||
)
|
||||
|
||||
type AvgStuScoreIn struct {
|
||||
|
@ -3,9 +3,9 @@ package faas
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"kis-flow/kis"
|
||||
"kis-flow/serialize"
|
||||
"kis-flow/test/proto"
|
||||
"github.com/aceld/kis-flow/kis"
|
||||
"github.com/aceld/kis-flow/serialize"
|
||||
"github.com/aceld/kis-flow/test/proto"
|
||||
)
|
||||
|
||||
type PrintStuAvgScoreIn struct {
|
||||
|
@ -1,10 +1,10 @@
|
||||
package test
|
||||
|
||||
import (
|
||||
"kis-flow/common"
|
||||
"kis-flow/kis"
|
||||
"kis-flow/test/caas"
|
||||
"kis-flow/test/faas"
|
||||
"github.com/aceld/kis-flow/common"
|
||||
"github.com/aceld/kis-flow/kis"
|
||||
"github.com/aceld/kis-flow/test/caas"
|
||||
"github.com/aceld/kis-flow/test/faas"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
@ -3,8 +3,8 @@ package test
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"kis-flow/file"
|
||||
"kis-flow/kis"
|
||||
"github.com/aceld/kis-flow/file"
|
||||
"github.com/aceld/kis-flow/kis"
|
||||
"testing"
|
||||
)
|
||||
|
||||
|
@ -2,13 +2,13 @@ package test
|
||||
|
||||
import (
|
||||
"context"
|
||||
"kis-flow/common"
|
||||
"kis-flow/config"
|
||||
"kis-flow/file"
|
||||
"kis-flow/flow"
|
||||
"kis-flow/kis"
|
||||
"kis-flow/test/faas"
|
||||
"kis-flow/test/proto"
|
||||
"github.com/aceld/kis-flow/common"
|
||||
"github.com/aceld/kis-flow/config"
|
||||
"github.com/aceld/kis-flow/file"
|
||||
"github.com/aceld/kis-flow/flow"
|
||||
"github.com/aceld/kis-flow/kis"
|
||||
"github.com/aceld/kis-flow/test/faas"
|
||||
"github.com/aceld/kis-flow/test/proto"
|
||||
"testing"
|
||||
)
|
||||
|
||||
|
@ -2,8 +2,8 @@ package test
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"kis-flow/file"
|
||||
"kis-flow/kis"
|
||||
"github.com/aceld/kis-flow/file"
|
||||
"github.com/aceld/kis-flow/kis"
|
||||
"testing"
|
||||
)
|
||||
|
||||
|
@ -2,8 +2,8 @@ package test
|
||||
|
||||
import (
|
||||
"context"
|
||||
"kis-flow/file"
|
||||
"kis-flow/kis"
|
||||
"github.com/aceld/kis-flow/file"
|
||||
"github.com/aceld/kis-flow/kis"
|
||||
"testing"
|
||||
)
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
package test
|
||||
|
||||
import (
|
||||
"kis-flow/common"
|
||||
"kis-flow/config"
|
||||
"kis-flow/log"
|
||||
"github.com/aceld/kis-flow/common"
|
||||
"github.com/aceld/kis-flow/config"
|
||||
"github.com/aceld/kis-flow/log"
|
||||
"testing"
|
||||
)
|
||||
|
||||
|
@ -2,9 +2,9 @@ package test
|
||||
|
||||
import (
|
||||
"context"
|
||||
"kis-flow/common"
|
||||
"kis-flow/config"
|
||||
"kis-flow/flow"
|
||||
"github.com/aceld/kis-flow/common"
|
||||
"github.com/aceld/kis-flow/config"
|
||||
"github.com/aceld/kis-flow/flow"
|
||||
"testing"
|
||||
)
|
||||
|
||||
|
@ -2,9 +2,9 @@ package test
|
||||
|
||||
import (
|
||||
"context"
|
||||
"kis-flow/common"
|
||||
"kis-flow/config"
|
||||
"kis-flow/flow"
|
||||
"github.com/aceld/kis-flow/common"
|
||||
"github.com/aceld/kis-flow/config"
|
||||
"github.com/aceld/kis-flow/flow"
|
||||
"testing"
|
||||
)
|
||||
|
||||
|
@ -2,8 +2,8 @@ package test
|
||||
|
||||
import (
|
||||
"context"
|
||||
"kis-flow/file"
|
||||
"kis-flow/kis"
|
||||
"github.com/aceld/kis-flow/file"
|
||||
"github.com/aceld/kis-flow/kis"
|
||||
"testing"
|
||||
)
|
||||
|
||||
|
@ -2,10 +2,10 @@ package test
|
||||
|
||||
import (
|
||||
"context"
|
||||
"kis-flow/common"
|
||||
"kis-flow/config"
|
||||
"kis-flow/flow"
|
||||
"kis-flow/function"
|
||||
"github.com/aceld/kis-flow/common"
|
||||
"github.com/aceld/kis-flow/config"
|
||||
"github.com/aceld/kis-flow/flow"
|
||||
"github.com/aceld/kis-flow/function"
|
||||
"testing"
|
||||
)
|
||||
|
||||
|
@ -2,7 +2,7 @@ package test
|
||||
|
||||
import (
|
||||
"context"
|
||||
"kis-flow/log"
|
||||
"github.com/aceld/kis-flow/log"
|
||||
"testing"
|
||||
)
|
||||
|
||||
|
@ -3,8 +3,8 @@ package test
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"kis-flow/file"
|
||||
"kis-flow/kis"
|
||||
"github.com/aceld/kis-flow/file"
|
||||
"github.com/aceld/kis-flow/kis"
|
||||
"testing"
|
||||
"time"
|
||||
)
|
||||
|
@ -2,8 +2,8 @@ package test
|
||||
|
||||
import (
|
||||
"context"
|
||||
"kis-flow/file"
|
||||
"kis-flow/kis"
|
||||
"github.com/aceld/kis-flow/file"
|
||||
"github.com/aceld/kis-flow/kis"
|
||||
"testing"
|
||||
)
|
||||
|
||||
|
@ -2,9 +2,9 @@ package test
|
||||
|
||||
import (
|
||||
"context"
|
||||
"kis-flow/common"
|
||||
"kis-flow/config"
|
||||
"kis-flow/flow"
|
||||
"github.com/aceld/kis-flow/common"
|
||||
"github.com/aceld/kis-flow/config"
|
||||
"github.com/aceld/kis-flow/flow"
|
||||
"testing"
|
||||
)
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
package test
|
||||
|
||||
import (
|
||||
"kis-flow/metrics"
|
||||
"github.com/aceld/kis-flow/metrics"
|
||||
"testing"
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user