Merge pull request #11 from aceld/feature/aceld

change module export
This commit is contained in:
刘丹冰 2024-03-26 14:56:25 +08:00 committed by GitHub
commit 36e0e94cb0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
52 changed files with 115 additions and 115 deletions

View File

@ -3,7 +3,7 @@ package config
import (
"errors"
"fmt"
"kis-flow/common"
"github.com/aceld/kis-flow/common"
)
// KisConnConfig KisConnector 策略配置

View File

@ -1,6 +1,6 @@
package config
import "kis-flow/common"
import "github.com/aceld/kis-flow/common"
// KisFlowFunctionParam 一个Flow配置中Function的Id及携带固定配置参数
type KisFlowFunctionParam struct {

View File

@ -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定制固定配置参数类型

View File

@ -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"
)

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -4,7 +4,7 @@ import (
"context"
"errors"
"fmt"
"kis-flow/kis"
"github.com/aceld/kis-flow/kis"
)
// dealAction 处理Action决定接下来Flow的流程走向

View File

@ -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"
)

View File

@ -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"
)

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

2
go.mod
View File

@ -1,4 +1,4 @@
module kis-flow
module github.com/aceld/kis-flow
go 1.18

View File

@ -1,8 +1,8 @@
package id
import (
"github.com/aceld/kis-flow/common"
"github.com/google/uuid"
"kis-flow/common"
"strings"
)

View File

@ -2,7 +2,7 @@ package kis
import (
"context"
"kis-flow/config"
"github.com/aceld/kis-flow/config"
)
type Connector interface {

View File

@ -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"
)

View File

@ -2,7 +2,7 @@ package kis
import (
"context"
"kis-flow/config"
"github.com/aceld/kis-flow/config"
)
// Function 流式计算基础计算模块KisFunction是一条流式计算的基本计算逻辑单元

View File

@ -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"
)

View File

@ -2,7 +2,7 @@ package kis
import (
"context"
"kis-flow/common"
"github.com/aceld/kis-flow/common"
)
// FaaS 定义移植到 faas.go 中

View File

@ -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"
)

View File

@ -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"
)

View File

@ -7,7 +7,7 @@ package serialize
import (
"encoding/json"
"fmt"
"kis-flow/common"
"github.com/aceld/kis-flow/common"
"reflect"
)

View File

@ -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

View File

@ -2,7 +2,7 @@ package caas
import (
"fmt"
"kis-flow/kis"
"github.com/aceld/kis-flow/kis"
)
// type ConnInit func(conn Connector) error

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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 {

View File

@ -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 {

View File

@ -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() {

View File

@ -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"
)

View File

@ -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"
)

View File

@ -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"
)

View File

@ -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"
)

View File

@ -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"
)

View File

@ -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"
)

View File

@ -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"
)

View File

@ -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"
)

View File

@ -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"
)

View File

@ -2,7 +2,7 @@ package test
import (
"context"
"kis-flow/log"
"github.com/aceld/kis-flow/log"
"testing"
)

View File

@ -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"
)

View File

@ -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"
)

View File

@ -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"
)

View File

@ -1,7 +1,7 @@
package test
import (
"kis-flow/metrics"
"github.com/aceld/kis-flow/metrics"
"testing"
)