Skip to content

Commit fbd4ce3

Browse files
author
Ivan Mirić
authored
Merge pull request #5 from k6io/feat/rename-k6-go-modules
Rename k6 Go modules to go.k6.io
2 parents 44692ab + bfee833 commit fbd4ce3

File tree

10 files changed

+316
-47
lines changed

10 files changed

+316
-47
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# xk6-output-kafka
2-
Is extracted the original [kafka output](https://k6.io/docs/results-visualization/apache-kafka) from [k6](https://github.com/loadimpact/k6) so it can be used with [xk6](https://github.com/k6io/xk6).
2+
Is extracted the original [kafka output](https://k6.io/docs/results-visualization/apache-kafka) from [k6](https://github.com/k6io/k6) so it can be used with [xk6](https://github.com/k6io/xk6).
33

44
</div>
55

go.mod

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ require (
77
github.com/influxdata/influxdb1-client v0.0.0-20190402204710-8ff2fc3824fc
88
github.com/kelseyhightower/envconfig v1.4.0
99
github.com/kubernetes/helm v2.9.0+incompatible
10-
github.com/loadimpact/k6 v0.31.1
11-
github.com/mitchellh/mapstructure v0.0.0-20180220230111-00c29f56e238
12-
github.com/sirupsen/logrus v1.6.0
13-
github.com/stretchr/testify v1.2.2
10+
github.com/mitchellh/mapstructure v1.1.2
11+
github.com/sirupsen/logrus v1.8.1
12+
github.com/stretchr/testify v1.7.0
13+
go.k6.io/k6 v0.31.2-0.20210511090412-61f464b99a2d
1414
gopkg.in/guregu/null.v3 v3.3.0
1515
)

go.sum

Lines changed: 300 additions & 31 deletions
Large diffs are not rendered by default.

pkg/kafka/collector.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ import (
2828
"github.com/Shopify/sarama"
2929
"github.com/sirupsen/logrus"
3030

31-
"github.com/loadimpact/k6/output"
32-
"github.com/loadimpact/k6/stats"
31+
"go.k6.io/k6/output"
32+
"go.k6.io/k6/stats"
3333
)
3434

3535
// Collector implements the lib.Collector interface and should be used only for testing

pkg/kafka/collector_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ import (
3030
"github.com/stretchr/testify/require"
3131
"gopkg.in/guregu/null.v3"
3232

33-
"github.com/loadimpact/k6/lib/testutils"
34-
"github.com/loadimpact/k6/output"
35-
"github.com/loadimpact/k6/stats"
33+
"go.k6.io/k6/lib/testutils"
34+
"go.k6.io/k6/output"
35+
"go.k6.io/k6/stats"
3636
)
3737

3838
func TestRun(t *testing.T) {

pkg/kafka/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import (
2929
"github.com/mitchellh/mapstructure"
3030
"gopkg.in/guregu/null.v3"
3131

32-
"github.com/loadimpact/k6/lib/types"
32+
"go.k6.io/k6/lib/types"
3333
)
3434

3535
// Config is the config for the kafka collector

pkg/kafka/config_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import (
3030
"github.com/stretchr/testify/require"
3131
"gopkg.in/guregu/null.v3"
3232

33-
"github.com/loadimpact/k6/lib/types"
33+
"go.k6.io/k6/lib/types"
3434
)
3535

3636
func TestConfigParseArg(t *testing.T) {

pkg/kafka/format_influxdb.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ import (
2626
"strings"
2727

2828
client "github.com/influxdata/influxdb1-client/v2"
29-
"github.com/loadimpact/k6/lib/types"
30-
"github.com/loadimpact/k6/stats"
29+
"go.k6.io/k6/lib/types"
30+
"go.k6.io/k6/stats"
3131
"github.com/mitchellh/mapstructure"
3232
"github.com/sirupsen/logrus"
3333
)

pkg/kafka/format_json.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ package kafka
2323
import (
2424
"time"
2525

26-
"github.com/loadimpact/k6/stats"
26+
"go.k6.io/k6/stats"
2727
)
2828

2929
// wrapSample is used to package a metric sample in a way that's nice to export

register.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package kafka
22

33
import (
44
"github.com/k6io/xk6-output-kafka/pkg/kafka"
5-
"github.com/loadimpact/k6/output"
5+
"go.k6.io/k6/output"
66
)
77

88
func init() {

0 commit comments

Comments
 (0)