Skip to content

Update module to v2 #216

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/gsantomaggio/rabbitmq-stream-go-client
module github.com/rabbitmq/rabbitmq-stream-go-client/v2

go 1.19

Expand Down
4 changes: 2 additions & 2 deletions internal/publish_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"bufio"
"bytes"
"fmt"
"github.com/gsantomaggio/rabbitmq-stream-go-client/pkg/codecs/amqp"
"github.com/gsantomaggio/rabbitmq-stream-go-client/pkg/common"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/rabbitmq/rabbitmq-stream-go-client/v2/pkg/codecs/amqp"
"github.com/rabbitmq/rabbitmq-stream-go-client/v2/pkg/common"
)

var _ = Describe("Create", func() {
Expand Down
6 changes: 3 additions & 3 deletions internal/sub_batch_publish_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import (
"bufio"
"bytes"
"fmt"
"github.com/gsantomaggio/rabbitmq-stream-go-client/pkg/codecs/amqp"
"github.com/gsantomaggio/rabbitmq-stream-go-client/pkg/common"
"github.com/gsantomaggio/rabbitmq-stream-go-client/pkg/constants"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/rabbitmq/rabbitmq-stream-go-client/v2/pkg/codecs/amqp"
"github.com/rabbitmq/rabbitmq-stream-go-client/v2/pkg/common"
"github.com/rabbitmq/rabbitmq-stream-go-client/v2/pkg/constants"
)

var _ = Describe("Create", func() {
Expand Down
2 changes: 1 addition & 1 deletion internal/subscribe.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package internal
import (
"bufio"
"bytes"
"github.com/gsantomaggio/rabbitmq-stream-go-client/pkg/constants"
"github.com/rabbitmq/rabbitmq-stream-go-client/v2/pkg/constants"
)

// SubscribeRequest is the command to subscribe to a stream
Expand Down
2 changes: 1 addition & 1 deletion internal/subscribe_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package internal
import (
"bufio"
"bytes"
"github.com/gsantomaggio/rabbitmq-stream-go-client/pkg/constants"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/rabbitmq/rabbitmq-stream-go-client/v2/pkg/constants"
)

var _ = Describe("Subscribe", func() {
Expand Down
10 changes: 5 additions & 5 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import (
"bufio"
"context"
"fmt"
"github.com/gsantomaggio/rabbitmq-stream-go-client/pkg/codecs/amqp"
"github.com/gsantomaggio/rabbitmq-stream-go-client/pkg/common"
"github.com/gsantomaggio/rabbitmq-stream-go-client/pkg/constants"
"github.com/gsantomaggio/rabbitmq-stream-go-client/pkg/raw"
"github.com/gsantomaggio/rabbitmq-stream-go-client/pkg/stream"
"github.com/rabbitmq/rabbitmq-stream-go-client/v2/pkg/codecs/amqp"
"github.com/rabbitmq/rabbitmq-stream-go-client/v2/pkg/common"
"github.com/rabbitmq/rabbitmq-stream-go-client/v2/pkg/constants"
"github.com/rabbitmq/rabbitmq-stream-go-client/v2/pkg/raw"
"github.com/rabbitmq/rabbitmq-stream-go-client/v2/pkg/stream"
"golang.org/x/exp/slog"
"os"
"time"
Expand Down
2 changes: 1 addition & 1 deletion pkg/common/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"bytes"
"compress/gzip"
"encoding"
"github.com/gsantomaggio/rabbitmq-stream-go-client/pkg/constants"
"github.com/rabbitmq/rabbitmq-stream-go-client/v2/pkg/constants"
"io"
)

Expand Down
6 changes: 3 additions & 3 deletions pkg/e2e/end_to_end_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import (
"context"
"encoding/binary"
"fmt"
"github.com/gsantomaggio/rabbitmq-stream-go-client/pkg/common"
"github.com/gsantomaggio/rabbitmq-stream-go-client/pkg/constants"
"github.com/gsantomaggio/rabbitmq-stream-go-client/pkg/raw"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/gmeasure"
"github.com/rabbitmq/rabbitmq-stream-go-client/v2/pkg/common"
"github.com/rabbitmq/rabbitmq-stream-go-client/v2/pkg/constants"
"github.com/rabbitmq/rabbitmq-stream-go-client/v2/pkg/raw"
"golang.org/x/exp/slog"
"io"
"os"
Expand Down
4 changes: 2 additions & 2 deletions pkg/raw/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"context"
"errors"
"fmt"
"github.com/gsantomaggio/rabbitmq-stream-go-client/internal"
"github.com/gsantomaggio/rabbitmq-stream-go-client/pkg/common"
"github.com/rabbitmq/rabbitmq-stream-go-client/v2/internal"
"github.com/rabbitmq/rabbitmq-stream-go-client/v2/pkg/common"
"golang.org/x/exp/slog"
"io"
"math"
Expand Down
2 changes: 1 addition & 1 deletion pkg/raw/client_dial_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"path/filepath"
"time"

"github.com/gsantomaggio/rabbitmq-stream-go-client/pkg/raw"
"github.com/rabbitmq/rabbitmq-stream-go-client/v2/pkg/raw"
)

var _ = Describe("ClientDial", func() {
Expand Down
4 changes: 2 additions & 2 deletions pkg/raw/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
"time"

"github.com/golang/mock/gomock"
"github.com/gsantomaggio/rabbitmq-stream-go-client/pkg/constants"
"github.com/gsantomaggio/rabbitmq-stream-go-client/pkg/raw"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/rabbitmq/rabbitmq-stream-go-client/v2/pkg/constants"
"github.com/rabbitmq/rabbitmq-stream-go-client/v2/pkg/raw"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions pkg/raw/client_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"crypto/tls"
"errors"
"github.com/gsantomaggio/rabbitmq-stream-go-client/internal"
"github.com/gsantomaggio/rabbitmq-stream-go-client/pkg/common"
"github.com/rabbitmq/rabbitmq-stream-go-client/v2/internal"
"github.com/rabbitmq/rabbitmq-stream-go-client/v2/pkg/common"
"net"
"time"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/raw/client_types_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package raw_test

import (
"github.com/gsantomaggio/rabbitmq-stream-go-client/pkg/raw"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
. "github.com/onsi/gomega/gstruct"
"github.com/rabbitmq/rabbitmq-stream-go-client/v2/pkg/raw"
)

var _ = Describe("ClientTypes", func() {
Expand Down
2 changes: 1 addition & 1 deletion pkg/raw/mock_conn_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pkg/raw/publishing_message.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package raw

import (
"github.com/gsantomaggio/rabbitmq-stream-go-client/internal"
"github.com/gsantomaggio/rabbitmq-stream-go-client/pkg/common"
"github.com/rabbitmq/rabbitmq-stream-go-client/v2/internal"
"github.com/rabbitmq/rabbitmq-stream-go-client/v2/pkg/common"
"io"
)

Expand Down
4 changes: 2 additions & 2 deletions pkg/raw/stream_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@ import (
"context"
"encoding/binary"
"errors"
"github.com/gsantomaggio/rabbitmq-stream-go-client/pkg/raw"
"github.com/rabbitmq/rabbitmq-stream-go-client/v2/pkg/raw"
"golang.org/x/exp/slog"
"io"
"net"
"os"
"testing"
"time"

"github.com/gsantomaggio/rabbitmq-stream-go-client/internal"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/rabbitmq/rabbitmq-stream-go-client/v2/internal"
)

var logger *slog.Logger
Expand Down
2 changes: 1 addition & 1 deletion pkg/raw/test_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package raw

import (
"context"
"github.com/gsantomaggio/rabbitmq-stream-go-client/internal"
"github.com/rabbitmq/rabbitmq-stream-go-client/v2/internal"
)

// StartFrameListener starts reading the Connection socket. It receives frames
Expand Down
2 changes: 1 addition & 1 deletion pkg/stream/environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package stream
import (
"context"
"fmt"
"github.com/gsantomaggio/rabbitmq-stream-go-client/pkg/raw"
"github.com/rabbitmq/rabbitmq-stream-go-client/v2/pkg/raw"
"golang.org/x/exp/slog"
"math/rand"
"time"
Expand Down
2 changes: 1 addition & 1 deletion pkg/stream/environment_configuration_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package stream_test

import (
"github.com/gsantomaggio/rabbitmq-stream-go-client/pkg/stream"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/rabbitmq/rabbitmq-stream-go-client/v2/pkg/stream"
)

var _ = Describe("EnvironmentConfiguration", func() {
Expand Down
4 changes: 2 additions & 2 deletions pkg/stream/environment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import (
"context"
"errors"
"github.com/golang/mock/gomock"
"github.com/gsantomaggio/rabbitmq-stream-go-client/pkg/raw"
"github.com/gsantomaggio/rabbitmq-stream-go-client/pkg/stream"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/gbytes"
"github.com/rabbitmq/rabbitmq-stream-go-client/v2/pkg/raw"
"github.com/rabbitmq/rabbitmq-stream-go-client/v2/pkg/stream"
"golang.org/x/exp/slog"
"reflect"
"sync"
Expand Down
2 changes: 1 addition & 1 deletion pkg/stream/locator.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package stream

import (
"context"
"github.com/gsantomaggio/rabbitmq-stream-go-client/pkg/raw"
"github.com/rabbitmq/rabbitmq-stream-go-client/v2/pkg/raw"
"golang.org/x/exp/slog"
"golang.org/x/mod/semver"
"net"
Expand Down
2 changes: 1 addition & 1 deletion pkg/stream/locator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package stream
import (
"context"
"errors"
"github.com/gsantomaggio/rabbitmq-stream-go-client/pkg/raw"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/rabbitmq/rabbitmq-stream-go-client/v2/pkg/raw"
"golang.org/x/exp/slog"
"time"
)
Expand Down
4 changes: 2 additions & 2 deletions pkg/stream/mock_raw_client_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/stream/test_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package stream

import (
"context"
"github.com/gsantomaggio/rabbitmq-stream-go-client/pkg/raw"
"github.com/rabbitmq/rabbitmq-stream-go-client/v2/pkg/raw"
"golang.org/x/exp/slog"
"time"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/stream/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"errors"
"fmt"
"github.com/gsantomaggio/rabbitmq-stream-go-client/pkg/raw"
"github.com/rabbitmq/rabbitmq-stream-go-client/v2/pkg/raw"
)

const (
Expand Down