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 ( import (
"errors" "errors"
"fmt" "fmt"
"kis-flow/common" "github.com/aceld/kis-flow/common"
) )
// KisConnConfig KisConnector 策略配置 // KisConnConfig KisConnector 策略配置

View File

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

View File

@ -2,8 +2,8 @@ package config
import ( import (
"errors" "errors"
"kis-flow/common" "github.com/aceld/kis-flow/common"
"kis-flow/log" "github.com/aceld/kis-flow/log"
) )
// FParam 在当前Flow中Function定制固定配置参数类型 // FParam 在当前Flow中Function定制固定配置参数类型

View File

@ -2,10 +2,10 @@ package conn
import ( import (
"context" "context"
"kis-flow/common" "github.com/aceld/kis-flow/common"
"kis-flow/config" "github.com/aceld/kis-flow/config"
"kis-flow/id" "github.com/aceld/kis-flow/id"
"kis-flow/kis" "github.com/aceld/kis-flow/kis"
"sync" "sync"
) )

View File

@ -3,8 +3,8 @@ package file
import ( import (
"errors" "errors"
"fmt" "fmt"
"kis-flow/common" "github.com/aceld/kis-flow/common"
"kis-flow/kis" "github.com/aceld/kis-flow/kis"
"os" "os"
"gopkg.in/yaml.v3" "gopkg.in/yaml.v3"

View File

@ -3,11 +3,11 @@ package file
import ( import (
"errors" "errors"
"fmt" "fmt"
"kis-flow/common" "github.com/aceld/kis-flow/common"
"kis-flow/config" "github.com/aceld/kis-flow/config"
"kis-flow/flow" "github.com/aceld/kis-flow/flow"
"kis-flow/kis" "github.com/aceld/kis-flow/kis"
"kis-flow/metrics" "github.com/aceld/kis-flow/metrics"
"os" "os"
"path" "path"
"path/filepath" "path/filepath"

View File

@ -3,15 +3,15 @@ package flow
import ( import (
"context" "context"
"errors" "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" "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" "sync"
"time" "time"

View File

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

View File

@ -4,11 +4,11 @@ import (
"context" "context"
"errors" "errors"
"fmt" "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" "github.com/patrickmn/go-cache"
"kis-flow/common"
"kis-flow/config"
"kis-flow/log"
"kis-flow/metrics"
"time" "time"
) )

View File

@ -3,10 +3,10 @@ package function
import ( import (
"context" "context"
"errors" "errors"
"kis-flow/common" "github.com/aceld/kis-flow/common"
"kis-flow/config" "github.com/aceld/kis-flow/config"
"kis-flow/id" "github.com/aceld/kis-flow/id"
"kis-flow/kis" "github.com/aceld/kis-flow/kis"
"sync" "sync"
) )

View File

@ -2,8 +2,8 @@ package function
import ( import (
"context" "context"
"kis-flow/kis" "github.com/aceld/kis-flow/kis"
"kis-flow/log" "github.com/aceld/kis-flow/log"
) )
type KisFunctionC struct { type KisFunctionC struct {

View File

@ -2,8 +2,8 @@ package function
import ( import (
"context" "context"
"kis-flow/kis" "github.com/aceld/kis-flow/kis"
"kis-flow/log" "github.com/aceld/kis-flow/log"
) )
type KisFunctionE struct { type KisFunctionE struct {

View File

@ -2,8 +2,8 @@ package function
import ( import (
"context" "context"
"kis-flow/kis" "github.com/aceld/kis-flow/kis"
"kis-flow/log" "github.com/aceld/kis-flow/log"
) )
type KisFunctionL struct { type KisFunctionL struct {

View File

@ -2,8 +2,8 @@ package function
import ( import (
"context" "context"
"kis-flow/kis" "github.com/aceld/kis-flow/kis"
"kis-flow/log" "github.com/aceld/kis-flow/log"
) )
type KisFunctionS struct { type KisFunctionS struct {

View File

@ -2,8 +2,8 @@ package function
import ( import (
"context" "context"
"kis-flow/kis" "github.com/aceld/kis-flow/kis"
"kis-flow/log" "github.com/aceld/kis-flow/log"
) )
type KisFunctionV struct { type KisFunctionV struct {

2
go.mod
View File

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

View File

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

View File

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

View File

@ -2,8 +2,8 @@ package kis
import ( import (
"context" "context"
"kis-flow/common" "github.com/aceld/kis-flow/common"
"kis-flow/config" "github.com/aceld/kis-flow/config"
"time" "time"
) )

View File

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

View File

@ -4,8 +4,8 @@ import (
"context" "context"
"errors" "errors"
"fmt" "fmt"
"kis-flow/common" "github.com/aceld/kis-flow/common"
"kis-flow/log" "github.com/aceld/kis-flow/log"
"reflect" "reflect"
"sync" "sync"
) )

View File

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

View File

@ -1,8 +1,8 @@
package kis package kis
import ( import (
"kis-flow/common" "github.com/aceld/kis-flow/common"
"kis-flow/serialize" "github.com/aceld/kis-flow/serialize"
"reflect" "reflect"
) )

View File

@ -1,11 +1,11 @@
package metrics package metrics
import ( 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"
"github.com/prometheus/client_golang/prometheus/promhttp" "github.com/prometheus/client_golang/prometheus/promhttp"
"kis-flow/common"
"kis-flow/config"
"kis-flow/log"
"net/http" "net/http"
) )

View File

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

View File

@ -3,7 +3,7 @@ package caas
import ( import (
"context" "context"
"fmt" "fmt"
"kis-flow/kis" "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{}) error

View File

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

View File

@ -3,7 +3,7 @@ package faas
import ( import (
"context" "context"
"fmt" "fmt"
"kis-flow/kis" "github.com/aceld/kis-flow/kis"
) )
// type FaaS func(context.Context, Flow) error // type FaaS func(context.Context, Flow) error

View File

@ -3,7 +3,7 @@ package faas
import ( import (
"context" "context"
"fmt" "fmt"
"kis-flow/kis" "github.com/aceld/kis-flow/kis"
) )
// type FaaS func(context.Context, Flow) error // type FaaS func(context.Context, Flow) error

View File

@ -3,7 +3,7 @@ package faas
import ( import (
"context" "context"
"fmt" "fmt"
"kis-flow/kis" "github.com/aceld/kis-flow/kis"
) )
// type FaaS func(context.Context, Flow) error // type FaaS func(context.Context, Flow) error

View File

@ -3,8 +3,8 @@ package faas
import ( import (
"context" "context"
"fmt" "fmt"
"kis-flow/kis" "github.com/aceld/kis-flow/kis"
"kis-flow/log" "github.com/aceld/kis-flow/log"
) )
// type FaaS func(context.Context, Flow) error // type FaaS func(context.Context, Flow) error

View File

@ -3,7 +3,7 @@ package faas
import ( import (
"context" "context"
"fmt" "fmt"
"kis-flow/kis" "github.com/aceld/kis-flow/kis"
) )
// type FaaS func(context.Context, Flow) error // type FaaS func(context.Context, Flow) error

View File

@ -3,7 +3,7 @@ package faas
import ( import (
"context" "context"
"fmt" "fmt"
"kis-flow/kis" "github.com/aceld/kis-flow/kis"
) )
// type FaaS func(context.Context, Flow) error // type FaaS func(context.Context, Flow) error

View File

@ -3,7 +3,7 @@ package faas
import ( import (
"context" "context"
"fmt" "fmt"
"kis-flow/kis" "github.com/aceld/kis-flow/kis"
) )
// type FaaS func(context.Context, Flow) error // type FaaS func(context.Context, Flow) error

View File

@ -3,7 +3,7 @@ package faas
import ( import (
"context" "context"
"fmt" "fmt"
"kis-flow/kis" "github.com/aceld/kis-flow/kis"
) )
// type FaaS func(context.Context, Flow) error // type FaaS func(context.Context, Flow) error

View File

@ -2,9 +2,9 @@ package faas
import ( import (
"context" "context"
"kis-flow/kis" "github.com/aceld/kis-flow/kis"
"kis-flow/serialize" "github.com/aceld/kis-flow/serialize"
"kis-flow/test/proto" "github.com/aceld/kis-flow/test/proto"
) )
type AvgStuScoreIn struct { type AvgStuScoreIn struct {

View File

@ -3,9 +3,9 @@ package faas
import ( import (
"context" "context"
"fmt" "fmt"
"kis-flow/kis" "github.com/aceld/kis-flow/kis"
"kis-flow/serialize" "github.com/aceld/kis-flow/serialize"
"kis-flow/test/proto" "github.com/aceld/kis-flow/test/proto"
) )
type PrintStuAvgScoreIn struct { type PrintStuAvgScoreIn struct {

View File

@ -1,10 +1,10 @@
package test package test
import ( import (
"kis-flow/common" "github.com/aceld/kis-flow/common"
"kis-flow/kis" "github.com/aceld/kis-flow/kis"
"kis-flow/test/caas" "github.com/aceld/kis-flow/test/caas"
"kis-flow/test/faas" "github.com/aceld/kis-flow/test/faas"
) )
func init() { func init() {

View File

@ -3,8 +3,8 @@ package test
import ( import (
"context" "context"
"fmt" "fmt"
"kis-flow/file" "github.com/aceld/kis-flow/file"
"kis-flow/kis" "github.com/aceld/kis-flow/kis"
"testing" "testing"
) )

View File

@ -2,13 +2,13 @@ package test
import ( import (
"context" "context"
"kis-flow/common" "github.com/aceld/kis-flow/common"
"kis-flow/config" "github.com/aceld/kis-flow/config"
"kis-flow/file" "github.com/aceld/kis-flow/file"
"kis-flow/flow" "github.com/aceld/kis-flow/flow"
"kis-flow/kis" "github.com/aceld/kis-flow/kis"
"kis-flow/test/faas" "github.com/aceld/kis-flow/test/faas"
"kis-flow/test/proto" "github.com/aceld/kis-flow/test/proto"
"testing" "testing"
) )

View File

@ -2,8 +2,8 @@ package test
import ( import (
"fmt" "fmt"
"kis-flow/file" "github.com/aceld/kis-flow/file"
"kis-flow/kis" "github.com/aceld/kis-flow/kis"
"testing" "testing"
) )

View File

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

View File

@ -1,9 +1,9 @@
package test package test
import ( import (
"kis-flow/common" "github.com/aceld/kis-flow/common"
"kis-flow/config" "github.com/aceld/kis-flow/config"
"kis-flow/log" "github.com/aceld/kis-flow/log"
"testing" "testing"
) )

View File

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

View File

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

View File

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

View File

@ -2,10 +2,10 @@ package test
import ( import (
"context" "context"
"kis-flow/common" "github.com/aceld/kis-flow/common"
"kis-flow/config" "github.com/aceld/kis-flow/config"
"kis-flow/flow" "github.com/aceld/kis-flow/flow"
"kis-flow/function" "github.com/aceld/kis-flow/function"
"testing" "testing"
) )

View File

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

View File

@ -3,8 +3,8 @@ package test
import ( import (
"context" "context"
"fmt" "fmt"
"kis-flow/file" "github.com/aceld/kis-flow/file"
"kis-flow/kis" "github.com/aceld/kis-flow/kis"
"testing" "testing"
"time" "time"
) )

View File

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

View File

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

View File

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