mirror of
https://github.com/aceld/kis-flow.git
synced 2025-01-22 23:20:24 +08:00
goimports -l -w .
This commit is contained in:
parent
e0e9b8144f
commit
8d8e693b30
@ -2,6 +2,7 @@ package config
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/aceld/kis-flow/common"
|
||||
)
|
||||
|
||||
|
@ -2,11 +2,12 @@ package conn
|
||||
|
||||
import (
|
||||
"context"
|
||||
"sync"
|
||||
|
||||
"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"
|
||||
)
|
||||
|
||||
// KisConnector represents a KisConnector instance
|
||||
|
@ -2,9 +2,10 @@ package file
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/aceld/kis-flow/common"
|
||||
"github.com/aceld/kis-flow/kis"
|
||||
"os"
|
||||
|
||||
"gopkg.in/yaml.v3"
|
||||
)
|
||||
|
@ -2,15 +2,16 @@ package file
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"path"
|
||||
"path/filepath"
|
||||
|
||||
"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"
|
||||
"gopkg.in/yaml.v3"
|
||||
"os"
|
||||
"path"
|
||||
"path/filepath"
|
||||
)
|
||||
|
||||
type allConfig struct {
|
||||
|
@ -3,6 +3,9 @@ package flow
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/aceld/kis-flow/common"
|
||||
"github.com/aceld/kis-flow/config"
|
||||
"github.com/aceld/kis-flow/conn"
|
||||
@ -12,8 +15,6 @@ import (
|
||||
"github.com/aceld/kis-flow/log"
|
||||
"github.com/aceld/kis-flow/metrics"
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/patrickmn/go-cache"
|
||||
)
|
||||
|
@ -3,11 +3,12 @@ package function
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"sync"
|
||||
|
||||
"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"
|
||||
)
|
||||
|
||||
type BaseFunction struct {
|
||||
|
@ -2,6 +2,7 @@ package function
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/aceld/kis-flow/kis"
|
||||
"github.com/aceld/kis-flow/log"
|
||||
)
|
||||
|
@ -2,6 +2,7 @@ package function
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/aceld/kis-flow/kis"
|
||||
"github.com/aceld/kis-flow/log"
|
||||
)
|
||||
|
@ -2,6 +2,7 @@ package function
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/aceld/kis-flow/kis"
|
||||
"github.com/aceld/kis-flow/log"
|
||||
)
|
||||
|
@ -2,6 +2,7 @@ package function
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/aceld/kis-flow/kis"
|
||||
"github.com/aceld/kis-flow/log"
|
||||
)
|
||||
|
@ -2,6 +2,7 @@ package function
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/aceld/kis-flow/kis"
|
||||
"github.com/aceld/kis-flow/log"
|
||||
)
|
||||
|
@ -1,9 +1,10 @@
|
||||
package id
|
||||
|
||||
import (
|
||||
"strings"
|
||||
|
||||
"github.com/aceld/kis-flow/common"
|
||||
"github.com/google/uuid"
|
||||
"strings"
|
||||
)
|
||||
|
||||
// KisID generates a random instance ID.
|
||||
|
@ -1,12 +1,13 @@
|
||||
package metrics
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"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"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// KisMetrics kisFlow's Prometheus monitoring metrics
|
||||
|
@ -3,6 +3,7 @@ package caas
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
"github.com/aceld/kis-flow/kis"
|
||||
)
|
||||
|
||||
|
@ -2,6 +2,7 @@ package caas
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/aceld/kis-flow/kis"
|
||||
)
|
||||
|
||||
|
@ -3,6 +3,7 @@ package faas
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
"github.com/aceld/kis-flow/kis"
|
||||
)
|
||||
|
||||
|
@ -3,6 +3,7 @@ package faas
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
"github.com/aceld/kis-flow/kis"
|
||||
)
|
||||
|
||||
|
@ -3,6 +3,7 @@ package faas
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
"github.com/aceld/kis-flow/kis"
|
||||
)
|
||||
|
||||
|
@ -3,6 +3,7 @@ package faas
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
"github.com/aceld/kis-flow/kis"
|
||||
"github.com/aceld/kis-flow/log"
|
||||
)
|
||||
|
@ -3,6 +3,7 @@ package faas
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
"github.com/aceld/kis-flow/kis"
|
||||
)
|
||||
|
||||
|
@ -3,6 +3,7 @@ package faas
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
"github.com/aceld/kis-flow/kis"
|
||||
)
|
||||
|
||||
|
@ -3,6 +3,7 @@ package faas
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
"github.com/aceld/kis-flow/kis"
|
||||
)
|
||||
|
||||
|
@ -3,6 +3,7 @@ package faas
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
"github.com/aceld/kis-flow/kis"
|
||||
)
|
||||
|
||||
|
@ -2,6 +2,7 @@ package faas
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/aceld/kis-flow/kis"
|
||||
"github.com/aceld/kis-flow/serialize"
|
||||
"github.com/aceld/kis-flow/test/proto"
|
||||
|
@ -3,6 +3,7 @@ package faas
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
"github.com/aceld/kis-flow/kis"
|
||||
"github.com/aceld/kis-flow/serialize"
|
||||
"github.com/aceld/kis-flow/test/proto"
|
||||
|
@ -3,9 +3,10 @@ package test
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/aceld/kis-flow/file"
|
||||
"github.com/aceld/kis-flow/kis"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestActionAbort(t *testing.T) {
|
||||
|
@ -2,6 +2,8 @@ package test
|
||||
|
||||
import (
|
||||
"context"
|
||||
"testing"
|
||||
|
||||
"github.com/aceld/kis-flow/common"
|
||||
"github.com/aceld/kis-flow/config"
|
||||
"github.com/aceld/kis-flow/file"
|
||||
@ -9,7 +11,6 @@ import (
|
||||
"github.com/aceld/kis-flow/kis"
|
||||
"github.com/aceld/kis-flow/test/faas"
|
||||
"github.com/aceld/kis-flow/test/proto"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestAutoInjectParamWithConfig(t *testing.T) {
|
||||
|
@ -2,9 +2,10 @@ package test
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/aceld/kis-flow/file"
|
||||
"github.com/aceld/kis-flow/kis"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestConfigExportYaml(t *testing.T) {
|
||||
|
@ -2,9 +2,10 @@ package test
|
||||
|
||||
import (
|
||||
"context"
|
||||
"testing"
|
||||
|
||||
"github.com/aceld/kis-flow/file"
|
||||
"github.com/aceld/kis-flow/kis"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestConfigImportYaml(t *testing.T) {
|
||||
|
@ -1,10 +1,11 @@
|
||||
package test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/aceld/kis-flow/common"
|
||||
"github.com/aceld/kis-flow/config"
|
||||
"github.com/aceld/kis-flow/log"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestNewFuncConfig(t *testing.T) {
|
||||
|
@ -2,10 +2,11 @@ package test
|
||||
|
||||
import (
|
||||
"context"
|
||||
"testing"
|
||||
|
||||
"github.com/aceld/kis-flow/common"
|
||||
"github.com/aceld/kis-flow/config"
|
||||
"github.com/aceld/kis-flow/flow"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestNewKisConnector(t *testing.T) {
|
||||
|
@ -2,10 +2,11 @@ package test
|
||||
|
||||
import (
|
||||
"context"
|
||||
"testing"
|
||||
|
||||
"github.com/aceld/kis-flow/file"
|
||||
"github.com/aceld/kis-flow/kis"
|
||||
"github.com/aceld/kis-flow/log"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestForkFlowCommitBatch(t *testing.T) {
|
||||
|
@ -2,10 +2,11 @@ package test
|
||||
|
||||
import (
|
||||
"context"
|
||||
"testing"
|
||||
|
||||
"github.com/aceld/kis-flow/common"
|
||||
"github.com/aceld/kis-flow/config"
|
||||
"github.com/aceld/kis-flow/flow"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestNewKisFlow(t *testing.T) {
|
||||
|
@ -3,12 +3,13 @@ package test
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"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"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestForkFlow(t *testing.T) {
|
||||
|
@ -2,11 +2,12 @@ package test
|
||||
|
||||
import (
|
||||
"context"
|
||||
"testing"
|
||||
|
||||
"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"
|
||||
)
|
||||
|
||||
func TestNewKisFunction(t *testing.T) {
|
||||
|
@ -2,8 +2,9 @@ package test
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/aceld/kis-flow/log"
|
||||
"testing"
|
||||
|
||||
"github.com/aceld/kis-flow/log"
|
||||
)
|
||||
|
||||
func TestKisLogger(t *testing.T) {
|
||||
|
@ -3,10 +3,11 @@ package test
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"github.com/aceld/kis-flow/file"
|
||||
"github.com/aceld/kis-flow/kis"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/aceld/kis-flow/file"
|
||||
"github.com/aceld/kis-flow/kis"
|
||||
)
|
||||
|
||||
func TestMetricsDataTotal(t *testing.T) {
|
||||
|
@ -2,9 +2,10 @@ package test
|
||||
|
||||
import (
|
||||
"context"
|
||||
"testing"
|
||||
|
||||
"github.com/aceld/kis-flow/file"
|
||||
"github.com/aceld/kis-flow/kis"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestParams(t *testing.T) {
|
||||
|
@ -2,10 +2,11 @@ package test
|
||||
|
||||
import (
|
||||
"context"
|
||||
"testing"
|
||||
|
||||
"github.com/aceld/kis-flow/common"
|
||||
"github.com/aceld/kis-flow/config"
|
||||
"github.com/aceld/kis-flow/flow"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestNewKisPool(t *testing.T) {
|
||||
|
@ -1,8 +1,9 @@
|
||||
package test
|
||||
|
||||
import (
|
||||
"github.com/aceld/kis-flow/metrics"
|
||||
"testing"
|
||||
|
||||
"github.com/aceld/kis-flow/metrics"
|
||||
)
|
||||
|
||||
func TestPrometheusServer(t *testing.T) {
|
||||
|
Loading…
Reference in New Issue
Block a user