Skip to content

Commit

Permalink
Move batch transformations under the transform umbrella
Browse files Browse the repository at this point in the history
  • Loading branch information
colmsnowplow committed Jun 19, 2024
1 parent 869441b commit f46f398
Show file tree
Hide file tree
Showing 14 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion cmd/aws/cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ package main
import (
"github.com/snowplow/snowbridge/cmd/cli"
"github.com/snowplow/snowbridge/config"
"github.com/snowplow/snowbridge/pkg/batchtransform/batchtransformconfig"
kafkasource "github.com/snowplow/snowbridge/pkg/source/kafka"
kinesissource "github.com/snowplow/snowbridge/pkg/source/kinesis"
pubsubsource "github.com/snowplow/snowbridge/pkg/source/pubsub"
sqssource "github.com/snowplow/snowbridge/pkg/source/sqs"
stdinsource "github.com/snowplow/snowbridge/pkg/source/stdin"
"github.com/snowplow/snowbridge/pkg/transform/batch/batchtransformconfig"
"github.com/snowplow/snowbridge/pkg/transform/single/transformconfig"
)

Expand Down
4 changes: 2 additions & 2 deletions cmd/cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ import (

"github.com/snowplow/snowbridge/cmd"
"github.com/snowplow/snowbridge/config"
"github.com/snowplow/snowbridge/pkg/batchtransform"
"github.com/snowplow/snowbridge/pkg/batchtransform/batchtransformconfig"
"github.com/snowplow/snowbridge/pkg/failure/failureiface"
"github.com/snowplow/snowbridge/pkg/models"
"github.com/snowplow/snowbridge/pkg/observer"
"github.com/snowplow/snowbridge/pkg/source/sourceconfig"
"github.com/snowplow/snowbridge/pkg/source/sourceiface"
"github.com/snowplow/snowbridge/pkg/target/targetiface"
"github.com/snowplow/snowbridge/pkg/telemetry"
batchtransform "github.com/snowplow/snowbridge/pkg/transform/batch"
"github.com/snowplow/snowbridge/pkg/transform/batch/batchtransformconfig"
transform "github.com/snowplow/snowbridge/pkg/transform/single"
"github.com/snowplow/snowbridge/pkg/transform/single/transformconfig"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/main/cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ package main
import (
"github.com/snowplow/snowbridge/cmd/cli"
"github.com/snowplow/snowbridge/config"
"github.com/snowplow/snowbridge/pkg/batchtransform/batchtransformconfig"
kafkasource "github.com/snowplow/snowbridge/pkg/source/kafka"
pubsubsource "github.com/snowplow/snowbridge/pkg/source/pubsub"
sqssource "github.com/snowplow/snowbridge/pkg/source/sqs"
stdinsource "github.com/snowplow/snowbridge/pkg/source/stdin"
"github.com/snowplow/snowbridge/pkg/transform/batch/batchtransformconfig"
"github.com/snowplow/snowbridge/pkg/transform/single/transformconfig"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/failure/snowplow_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import (
"github.com/pkg/errors"
"github.com/stretchr/testify/assert"

"github.com/snowplow/snowbridge/pkg/batchtransform"
"github.com/snowplow/snowbridge/pkg/models"
"github.com/snowplow/snowbridge/pkg/testutil"
batchtransform "github.com/snowplow/snowbridge/pkg/transform/batch"
)

// --- Test FailureTarget
Expand Down
2 changes: 1 addition & 1 deletion pkg/target/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
package target

import (
"github.com/snowplow/snowbridge/pkg/batchtransform"
"github.com/snowplow/snowbridge/pkg/models"
batchtransform "github.com/snowplow/snowbridge/pkg/transform/batch"
)

// chunkBatcherWithConfig returns a batch transformation which incorporates models.GetChunkedMessages() into the batch transformation model.
Expand Down
2 changes: 1 addition & 1 deletion pkg/target/eventhub.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import (
"github.com/pkg/errors"
log "github.com/sirupsen/logrus"

"github.com/snowplow/snowbridge/pkg/batchtransform"
"github.com/snowplow/snowbridge/pkg/models"
batchtransform "github.com/snowplow/snowbridge/pkg/transform/batch"
)

// EventHubConfig holds a config object for Azure EventHub
Expand Down
2 changes: 1 addition & 1 deletion pkg/target/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ import (
"github.com/pkg/errors"
log "github.com/sirupsen/logrus"

"github.com/snowplow/snowbridge/pkg/batchtransform"
"github.com/snowplow/snowbridge/pkg/common"
"github.com/snowplow/snowbridge/pkg/models"
batchtransform "github.com/snowplow/snowbridge/pkg/transform/batch"

"golang.org/x/oauth2"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/target/http_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import (

"github.com/stretchr/testify/assert"

"github.com/snowplow/snowbridge/pkg/batchtransform"
"github.com/snowplow/snowbridge/pkg/testutil"
batchtransform "github.com/snowplow/snowbridge/pkg/transform/batch"
)

func createTestServerWithResponseCode(results *[][]byte, waitgroup *sync.WaitGroup, responseCode int) *httptest.Server {
Expand Down
2 changes: 1 addition & 1 deletion pkg/target/kafka.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ import (
"github.com/hashicorp/go-multierror"
"github.com/pkg/errors"
log "github.com/sirupsen/logrus"
"github.com/snowplow/snowbridge/pkg/batchtransform"
"github.com/snowplow/snowbridge/pkg/common"
"github.com/snowplow/snowbridge/pkg/models"
batchtransform "github.com/snowplow/snowbridge/pkg/transform/batch"
)

// KafkaConfig contains configurable options for the kafka target
Expand Down
2 changes: 1 addition & 1 deletion pkg/target/kafka_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import (
"github.com/IBM/sarama/mocks"
log "github.com/sirupsen/logrus"

"github.com/snowplow/snowbridge/pkg/batchtransform"
"github.com/snowplow/snowbridge/pkg/testutil"
batchtransform "github.com/snowplow/snowbridge/pkg/transform/batch"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/target/targetiface/target.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
package targetiface

import (
"github.com/snowplow/snowbridge/pkg/batchtransform"
"github.com/snowplow/snowbridge/pkg/models"
batchtransform "github.com/snowplow/snowbridge/pkg/transform/batch"
)

// Target describes the interface for how to push the data pulled from the source
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"fmt"

"github.com/snowplow/snowbridge/config"
"github.com/snowplow/snowbridge/pkg/batchtransform"
batchtransform "github.com/snowplow/snowbridge/pkg/transform/batch"
)

// SupportedTransformations is a ConfigurationPair slice containing all the officially supported transformations.
Expand Down
File renamed without changes.

0 comments on commit f46f398

Please sign in to comment.