Skip to content

Commit

Permalink
Fork (#4)
Browse files Browse the repository at this point in the history
* Change module names to use generalmotors org
* Fixed imports
  • Loading branch information
tnewman-at-gm authored Oct 16, 2024
1 parent f0a0db2 commit 98429e4
Show file tree
Hide file tree
Showing 185 changed files with 330 additions and 285 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ assignees: ''
package main

import (
"github.com/segmentio/kafka-go"
"github.com/generalmotors/kafka-go"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion addoffsetstotxn.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"net"
"time"

"github.com/segmentio/kafka-go/protocol/addoffsetstotxn"
"github.com/generalmotors/kafka-go/protocol/addoffsetstotxn"
)

// AddOffsetsToTxnRequest is the request structure for the AddOffsetsToTxn function.
Expand Down
2 changes: 1 addition & 1 deletion addoffsetstotxn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"testing"
"time"

ktesting "github.com/segmentio/kafka-go/testing"
ktesting "github.com/generalmotors/kafka-go/testing"
)

func TestClientAddOffsetsToTxn(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion addpartitionstotxn.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"net"
"time"

"github.com/segmentio/kafka-go/protocol/addpartitionstotxn"
"github.com/generalmotors/kafka-go/protocol/addpartitionstotxn"
)

// AddPartitionToTxn represents a partition to be added
Expand Down
2 changes: 1 addition & 1 deletion addpartitionstotxn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"testing"
"time"

ktesting "github.com/segmentio/kafka-go/testing"
ktesting "github.com/generalmotors/kafka-go/testing"
)

func TestClientAddPartitionsToTxn(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion alterclientquotas.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"net"
"time"

"github.com/segmentio/kafka-go/protocol/alterclientquotas"
"github.com/generalmotors/kafka-go/protocol/alterclientquotas"
)

// AlterClientQuotasRequest represents a request sent to a kafka broker to
Expand Down
2 changes: 1 addition & 1 deletion alterclientquotas_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"testing"

ktesting "github.com/segmentio/kafka-go/testing"
ktesting "github.com/generalmotors/kafka-go/testing"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion alterconfigs.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"net"
"time"

"github.com/segmentio/kafka-go/protocol/alterconfigs"
"github.com/generalmotors/kafka-go/protocol/alterconfigs"
)

// AlterConfigsRequest represents a request sent to a kafka broker to alter configs.
Expand Down
2 changes: 1 addition & 1 deletion alterconfigs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"testing"

ktesting "github.com/segmentio/kafka-go/testing"
ktesting "github.com/generalmotors/kafka-go/testing"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion alterpartitionreassignments.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"net"
"time"

"github.com/segmentio/kafka-go/protocol/alterpartitionreassignments"
"github.com/generalmotors/kafka-go/protocol/alterpartitionreassignments"
)

// AlterPartitionReassignmentsRequest is a request to the AlterPartitionReassignments API.
Expand Down
2 changes: 1 addition & 1 deletion alterpartitionreassignments_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"testing"

ktesting "github.com/segmentio/kafka-go/testing"
ktesting "github.com/generalmotors/kafka-go/testing"
)

func TestClientAlterPartitionReassignments(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion alteruserscramcredentials.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"net"
"time"

"github.com/segmentio/kafka-go/protocol/alteruserscramcredentials"
"github.com/generalmotors/kafka-go/protocol/alteruserscramcredentials"
)

// AlterUserScramCredentialsRequest represents a request sent to a kafka broker to
Expand Down
2 changes: 1 addition & 1 deletion alteruserscramcredentials_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"testing"

ktesting "github.com/segmentio/kafka-go/testing"
ktesting "github.com/generalmotors/kafka-go/testing"
)

func TestAlterUserScramCredentials(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions apiversions.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"net"

"github.com/segmentio/kafka-go/protocol"
"github.com/segmentio/kafka-go/protocol/apiversions"
"github.com/generalmotors/kafka-go/protocol"
"github.com/generalmotors/kafka-go/protocol/apiversions"
)

// ApiVersionsRequest is a request to the ApiVersions API.
Expand Down
2 changes: 1 addition & 1 deletion builder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"io"
"time"

"github.com/segmentio/kafka-go/compress"
"github.com/generalmotors/kafka-go/compress"
)

// This file defines builders to assist in creating kafka payloads for unit testing.
Expand Down
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"net"
"time"

"github.com/segmentio/kafka-go/protocol"
"github.com/generalmotors/kafka-go/protocol"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"testing"
"time"

"github.com/segmentio/kafka-go/compress"
ktesting "github.com/segmentio/kafka-go/testing"
"github.com/generalmotors/kafka-go/compress"
ktesting "github.com/generalmotors/kafka-go/testing"
)

func newLocalClientAndTopic() (*Client, string, func()) {
Expand Down
8 changes: 4 additions & 4 deletions compress/compress.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (
"strconv"
"strings"

"github.com/segmentio/kafka-go/compress/gzip"
"github.com/segmentio/kafka-go/compress/lz4"
"github.com/segmentio/kafka-go/compress/snappy"
"github.com/segmentio/kafka-go/compress/zstd"
"github.com/generalmotors/kafka-go/compress/gzip"
"github.com/generalmotors/kafka-go/compress/lz4"
"github.com/generalmotors/kafka-go/compress/snappy"
"github.com/generalmotors/kafka-go/compress/zstd"
)

// Compression represents the compression applied to a record set.
Expand Down
14 changes: 7 additions & 7 deletions compress/compress_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ import (
"text/tabwriter"
"time"

"github.com/generalmotors/kafka-go"
pkg "github.com/generalmotors/kafka-go/compress"
"github.com/generalmotors/kafka-go/compress/gzip"
"github.com/generalmotors/kafka-go/compress/lz4"
"github.com/generalmotors/kafka-go/compress/snappy"
"github.com/generalmotors/kafka-go/compress/zstd"
ktesting "github.com/generalmotors/kafka-go/testing"
gz "github.com/klauspost/compress/gzip"
"github.com/segmentio/kafka-go"
pkg "github.com/segmentio/kafka-go/compress"
"github.com/segmentio/kafka-go/compress/gzip"
"github.com/segmentio/kafka-go/compress/lz4"
"github.com/segmentio/kafka-go/compress/snappy"
"github.com/segmentio/kafka-go/compress/zstd"
ktesting "github.com/segmentio/kafka-go/testing"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion compress/snappy/xerial_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"io"
"testing"

goxerialsnappy "github.com/generalmotors/kafka-go/compress/snappy/go-xerial-snappy"
"github.com/klauspost/compress/snappy"
goxerialsnappy "github.com/segmentio/kafka-go/compress/snappy/go-xerial-snappy"
)

// Wrap an io.Reader or io.Writer to disable all copy optimizations like
Expand Down
2 changes: 1 addition & 1 deletion compression.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package kafka
import (
"errors"

"github.com/segmentio/kafka-go/compress"
"github.com/generalmotors/kafka-go/compress"
)

type Compression = compress.Compression
Expand Down
2 changes: 1 addition & 1 deletion conn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"testing"
"time"

ktesting "github.com/segmentio/kafka-go/testing"
ktesting "github.com/generalmotors/kafka-go/testing"
"golang.org/x/net/nettest"
)

Expand Down
2 changes: 1 addition & 1 deletion createacls.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strings"
"time"

"github.com/segmentio/kafka-go/protocol/createacls"
"github.com/generalmotors/kafka-go/protocol/createacls"
)

// CreateACLsRequest represents a request sent to a kafka broker to add
Expand Down
2 changes: 1 addition & 1 deletion createacls_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"testing"

ktesting "github.com/segmentio/kafka-go/testing"
ktesting "github.com/generalmotors/kafka-go/testing"
)

func TestClientCreateACLs(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion createpartitions.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"net"
"time"

"github.com/segmentio/kafka-go/protocol/createpartitions"
"github.com/generalmotors/kafka-go/protocol/createpartitions"
)

// CreatePartitionsRequest represents a request sent to a kafka broker to create
Expand Down
2 changes: 1 addition & 1 deletion createpartitions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"testing"

ktesting "github.com/segmentio/kafka-go/testing"
ktesting "github.com/generalmotors/kafka-go/testing"
)

func TestClientCreatePartitions(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion createtopics.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"net"
"time"

"github.com/segmentio/kafka-go/protocol/createtopics"
"github.com/generalmotors/kafka-go/protocol/createtopics"
)

// CreateTopicRequests represents a request sent to a kafka broker to create
Expand Down
2 changes: 1 addition & 1 deletion deleteacls.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"net"
"time"

"github.com/segmentio/kafka-go/protocol/deleteacls"
"github.com/generalmotors/kafka-go/protocol/deleteacls"
)

// DeleteACLsRequest represents a request sent to a kafka broker to delete
Expand Down
2 changes: 1 addition & 1 deletion deleteacls_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"testing"

ktesting "github.com/segmentio/kafka-go/testing"
ktesting "github.com/generalmotors/kafka-go/testing"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion deletegroups.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"net"
"time"

"github.com/segmentio/kafka-go/protocol/deletegroups"
"github.com/generalmotors/kafka-go/protocol/deletegroups"
)

// DeleteGroupsRequest represents a request sent to a kafka broker to delete
Expand Down
2 changes: 1 addition & 1 deletion deletegroups_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"testing"
"time"

ktesting "github.com/segmentio/kafka-go/testing"
ktesting "github.com/generalmotors/kafka-go/testing"
)

func TestClientDeleteGroups(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion deletetopics.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"net"
"time"

"github.com/segmentio/kafka-go/protocol/deletetopics"
"github.com/generalmotors/kafka-go/protocol/deletetopics"
)

// DeleteTopicsRequest represents a request sent to a kafka broker to delete
Expand Down
2 changes: 1 addition & 1 deletion describeacls.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"net"
"time"

"github.com/segmentio/kafka-go/protocol/describeacls"
"github.com/generalmotors/kafka-go/protocol/describeacls"
)

// DescribeACLsRequest represents a request sent to a kafka broker to describe
Expand Down
2 changes: 1 addition & 1 deletion describeacls_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"testing"

ktesting "github.com/segmentio/kafka-go/testing"
ktesting "github.com/generalmotors/kafka-go/testing"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion describeclientquotas.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"net"
"time"

"github.com/segmentio/kafka-go/protocol/describeclientquotas"
"github.com/generalmotors/kafka-go/protocol/describeclientquotas"
)

// DescribeClientQuotasRequest represents a request sent to a kafka broker to
Expand Down
2 changes: 1 addition & 1 deletion describeconfigs.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"net"
"time"

"github.com/segmentio/kafka-go/protocol/describeconfigs"
"github.com/generalmotors/kafka-go/protocol/describeconfigs"
)

// DescribeConfigsRequest represents a request sent to a kafka broker to describe configs.
Expand Down
2 changes: 1 addition & 1 deletion describeconfigs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"testing"

ktesting "github.com/segmentio/kafka-go/testing"
ktesting "github.com/generalmotors/kafka-go/testing"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion describegroups.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"fmt"
"net"

"github.com/segmentio/kafka-go/protocol/describegroups"
"github.com/generalmotors/kafka-go/protocol/describegroups"
)

// DescribeGroupsRequest is a request to the DescribeGroups API.
Expand Down
2 changes: 1 addition & 1 deletion describeuserscramcredentials.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"net"
"time"

"github.com/segmentio/kafka-go/protocol/describeuserscramcredentials"
"github.com/generalmotors/kafka-go/protocol/describeuserscramcredentials"
)

// DescribeUserScramCredentialsRequest represents a request sent to a kafka broker to
Expand Down
2 changes: 1 addition & 1 deletion describeuserscramcredentials_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"errors"
"testing"

ktesting "github.com/segmentio/kafka-go/testing"
ktesting "github.com/generalmotors/kafka-go/testing"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion dialer.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"strings"
"time"

"github.com/segmentio/kafka-go/sasl"
"github.com/generalmotors/kafka-go/sasl"
)

// The Dialer type mirrors the net.Dialer API but is designed to open kafka
Expand Down
Loading

0 comments on commit 98429e4

Please sign in to comment.