Skip to content

Commit

Permalink
restore gci modify
Browse files Browse the repository at this point in the history
Signed-off-by: siwuxie <cwl990110@163.com>
  • Loading branch information
578223592 committed Sep 19, 2024
1 parent a0100d8 commit f7f3315
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 15 deletions.
12 changes: 4 additions & 8 deletions contract/api/source.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,10 @@ type LookupBytesSource interface {

/// helper function definition

type (
ErrorIngest func(ctx StreamContext, err error)
BytesIngest func(ctx StreamContext, payload []byte, meta map[string]any, ts time.Time)
)
type ErrorIngest func(ctx StreamContext, err error)
type BytesIngest func(ctx StreamContext, payload []byte, meta map[string]any, ts time.Time)

// TupleIngest reads in a structural data or its list.
// It supports map and []map for now
type (
TupleIngest func(ctx StreamContext, data any, meta map[string]any, ts time.Time)
EOFIngest func(ctx StreamContext)
)
type TupleIngest func(ctx StreamContext, data any, meta map[string]any, ts time.Time)
type EOFIngest func(ctx StreamContext)
5 changes: 3 additions & 2 deletions sdk/go/connection/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,15 @@ import (
"fmt"
"time"

"github.com/lf-edge/ekuiper/sdk/go/api"
"github.com/lf-edge/ekuiper/sdk/go/context"
"go.nanomsg.org/mangos/v3"
"go.nanomsg.org/mangos/v3/protocol/pull"
"go.nanomsg.org/mangos/v3/protocol/push"
"go.nanomsg.org/mangos/v3/protocol/req"
// introduce ipc
_ "go.nanomsg.org/mangos/v3/transport/ipc"

"github.com/lf-edge/ekuiper/sdk/go/api"
"github.com/lf-edge/ekuiper/sdk/go/context"
)

// Options Initialized in plugin.go Start according to the config
Expand Down
3 changes: 2 additions & 1 deletion sdk/go/context/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ import (
"context"
"time"

"github.com/lf-edge/ekuiper/sdk/go/api"
"github.com/sirupsen/logrus"

"github.com/lf-edge/ekuiper/sdk/go/api"
)

const LoggerKey = "$$logger"
Expand Down
3 changes: 2 additions & 1 deletion sdk/go/context/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ package context

import (
filename "github.com/keepeye/logrus-filename"
"github.com/lf-edge/ekuiper/sdk/go/api"
"github.com/sirupsen/logrus"

"github.com/lf-edge/ekuiper/sdk/go/api"
)

var Log *logrus.Logger
Expand Down
3 changes: 2 additions & 1 deletion sdk/go/example/mirror/random_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ import (
"strings"
"time"

"github.com/lf-edge/ekuiper/sdk/go/api"
"github.com/mitchellh/mapstructure"

"github.com/lf-edge/ekuiper/sdk/go/api"
)

const dedupStateKey = "input"
Expand Down
3 changes: 2 additions & 1 deletion sdk/go/mock/mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ import (
"time"

filename "github.com/keepeye/logrus-filename"
"github.com/lf-edge/ekuiper/sdk/go/api"
"github.com/sirupsen/logrus"

"github.com/lf-edge/ekuiper/sdk/go/api"
)

type mockContext struct {
Expand Down
3 changes: 2 additions & 1 deletion sdk/go/runtime/sink.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ import (
"encoding/json"
"fmt"

"go.nanomsg.org/mangos/v3"

"github.com/lf-edge/ekuiper/sdk/go/api"
"github.com/lf-edge/ekuiper/sdk/go/connection"
"go.nanomsg.org/mangos/v3"
)

type sinkRuntime struct {
Expand Down

0 comments on commit f7f3315

Please sign in to comment.