diff --git a/api/proto/buf.gen.yaml b/api/proto/buf.gen.yaml index 5907552..aca334b 100644 --- a/api/proto/buf.gen.yaml +++ b/api/proto/buf.gen.yaml @@ -2,7 +2,7 @@ version: v1 managed: enabled: true go_package_prefix: - default: github.com/proxima-one/streamdb-client-go/api/proto/gen/proto/go + default: github.com/proxima-one/streamdb-client-go/v2/api/proto/gen/proto/go except: - buf.build/googleapis/googleapis plugins: diff --git a/api/proto/gen/proto/go/stream_consumer/v1alpha1/stream_consumer.pb.go b/api/proto/gen/proto/go/stream_consumer/v1alpha1/stream_consumer.pb.go index f57951d..580c032 100644 --- a/api/proto/gen/proto/go/stream_consumer/v1alpha1/stream_consumer.pb.go +++ b/api/proto/gen/proto/go/stream_consumer/v1alpha1/stream_consumer.pb.go @@ -7,7 +7,7 @@ package stream_consumerv1alpha1 import ( - v1 "github.com/proxima-one/streamdb-client-go/api/proto/gen/proto/go/model/v1" + v1 "github.com/proxima-one/streamdb-client-go/v2/api/proto/gen/proto/go/model/v1" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" diff --git a/api/proto/gen/proto/go/stream_producer/v1alpha1/stream_producer.pb.go b/api/proto/gen/proto/go/stream_producer/v1alpha1/stream_producer.pb.go index 30d3469..0fd60e2 100644 --- a/api/proto/gen/proto/go/stream_producer/v1alpha1/stream_producer.pb.go +++ b/api/proto/gen/proto/go/stream_producer/v1alpha1/stream_producer.pb.go @@ -7,7 +7,7 @@ package stream_producerv1alpha1 import ( - v1 "github.com/proxima-one/streamdb-client-go/api/proto/gen/proto/go/model/v1" + v1 "github.com/proxima-one/streamdb-client-go/v2/api/proto/gen/proto/go/model/v1" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" diff --git a/api/proto/gen/proto/go/stream_stats/v1alpha1/stream_stats.pb.go b/api/proto/gen/proto/go/stream_stats/v1alpha1/stream_stats.pb.go index c4f0278..70ebd89 100644 --- a/api/proto/gen/proto/go/stream_stats/v1alpha1/stream_stats.pb.go +++ b/api/proto/gen/proto/go/stream_stats/v1alpha1/stream_stats.pb.go @@ -7,7 +7,7 @@ package stream_statsv1alpha1 import ( - v1 "github.com/proxima-one/streamdb-client-go/api/proto/gen/proto/go/model/v1" + v1 "github.com/proxima-one/streamdb-client-go/v2/api/proto/gen/proto/go/model/v1" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" diff --git a/cmd/dev/main.go b/cmd/dev/main.go index 656625e..9b83b8f 100644 --- a/cmd/dev/main.go +++ b/cmd/dev/main.go @@ -4,8 +4,8 @@ import ( "context" "fmt" "github.com/davecgh/go-spew/spew" - "github.com/proxima-one/streamdb-client-go/pkg/connection" - "github.com/proxima-one/streamdb-client-go/pkg/proximaclient" + "github.com/proxima-one/streamdb-client-go/v2/pkg/connection" + "github.com/proxima-one/streamdb-client-go/v2/pkg/proximaclient" "time" ) diff --git a/go.mod b/go.mod index 4dfcde4..26a6efd 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/proxima-one/streamdb-client-go +module github.com/proxima-one/streamdb-client-go/v2 go 1.18 diff --git a/pkg/proximaclient/client_stream_db_consumer_client.go b/pkg/proximaclient/client_stream_db_consumer_client.go index 84a4bdc..8ac9943 100644 --- a/pkg/proximaclient/client_stream_db_consumer_client.go +++ b/pkg/proximaclient/client_stream_db_consumer_client.go @@ -4,8 +4,8 @@ import ( "context" "crypto/tls" "fmt" - streamConsumer "github.com/proxima-one/streamdb-client-go/api/proto/gen/proto/go/stream_consumer/v1alpha1" - "github.com/proxima-one/streamdb-client-go/internal" + streamConsumer "github.com/proxima-one/streamdb-client-go/v2/api/proto/gen/proto/go/stream_consumer/v1alpha1" + "github.com/proxima-one/streamdb-client-go/v2/internal" "google.golang.org/grpc" "google.golang.org/grpc/credentials" "google.golang.org/grpc/credentials/insecure" diff --git a/pkg/proximaclient/client_stream_registy_client.go b/pkg/proximaclient/client_stream_registy_client.go index adfc599..dc96f9b 100644 --- a/pkg/proximaclient/client_stream_registy_client.go +++ b/pkg/proximaclient/client_stream_registy_client.go @@ -4,7 +4,7 @@ import ( "encoding/json" "fmt" http "github.com/hashicorp/go-retryablehttp" - "github.com/proxima-one/streamdb-client-go/pkg/connection" + "github.com/proxima-one/streamdb-client-go/v2/pkg/connection" "io" "math" "math/rand" diff --git a/pkg/proximaclient/model_converters.go b/pkg/proximaclient/model_converters.go index 61d4e98..e2bd3f8 100644 --- a/pkg/proximaclient/model_converters.go +++ b/pkg/proximaclient/model_converters.go @@ -1,8 +1,8 @@ package proximaclient import ( - pbModel "github.com/proxima-one/streamdb-client-go/api/proto/gen/proto/go/model/v1" - pbConsumerModel "github.com/proxima-one/streamdb-client-go/api/proto/gen/proto/go/stream_consumer/v1alpha1" + pbModel "github.com/proxima-one/streamdb-client-go/v2/api/proto/gen/proto/go/model/v1" + pbConsumerModel "github.com/proxima-one/streamdb-client-go/v2/api/proto/gen/proto/go/stream_consumer/v1alpha1" ) func protoStateTransitionToStreamEvent(transition *pbModel.StateTransition) StreamEvent { diff --git a/pkg/proximaclient/model_offset.go b/pkg/proximaclient/model_offset.go index ca6f50b..7029973 100644 --- a/pkg/proximaclient/model_offset.go +++ b/pkg/proximaclient/model_offset.go @@ -2,7 +2,7 @@ package proximaclient import ( "fmt" - "github.com/proxima-one/streamdb-client-go/internal" + "github.com/proxima-one/streamdb-client-go/v2/internal" "strings" ) diff --git a/pkg/proximaclient/model_timestamp.go b/pkg/proximaclient/model_timestamp.go index be04fc5..bb78c5f 100644 --- a/pkg/proximaclient/model_timestamp.go +++ b/pkg/proximaclient/model_timestamp.go @@ -3,7 +3,7 @@ package proximaclient import ( "encoding/base64" "fmt" - "github.com/proxima-one/streamdb-client-go/internal" + "github.com/proxima-one/streamdb-client-go/v2/internal" "strconv" "strings" "time"