Skip to content

Commit

Permalink
replace apache paths
Browse files Browse the repository at this point in the history
  • Loading branch information
hmoragrega committed Oct 26, 2020
1 parent f9b3c0f commit 198e3b2
Show file tree
Hide file tree
Showing 46 changed files with 74 additions and 76 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,4 @@ add the license at the beginning of each file. The location of the header file:

## Update dependencies

Apache `pulsar-client-go` uses [Go 1.11 module](https://github.com/golang/go/wiki/Modules) to manage dependencies. To add or update a dependency, use the `go mod edit` command to change the dependency.
Apache `pulsar-client-go` uses [Go 1.11 module](https://github.com/golang/go/wiki/Modules) to manage dependencies. To add or update a dependency, use the `go mod edit` command to change the dependency.
2 changes: 1 addition & 1 deletion examples/consumer-listener/consumer-listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"fmt"
"log"

"github.com/apache/pulsar-client-go/pulsar"
"github.com/netdata/pulsar-client-go/pulsar"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/consumer/consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"fmt"
"log"

"github.com/apache/pulsar-client-go/pulsar"
"github.com/netdata/pulsar-client-go/pulsar"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/producer/producer.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"fmt"
"log"

"github.com/apache/pulsar-client-go/pulsar"
"github.com/netdata/pulsar-client-go/pulsar"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/reader/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"fmt"
"log"

"github.com/apache/pulsar-client-go/pulsar"
"github.com/netdata/pulsar-client-go/pulsar"
)

func main() {
Expand Down
9 changes: 4 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
module github.com/apache/pulsar-client-go
module github.com/netdata/pulsar-client-go

go 1.13

require (
github.com/DataDog/zstd v1.4.6-0.20200617134701-89f69fb7df32
github.com/apache/pulsar-client-go/oauth2 v0.0.0-20200715083626-b9f8c5cedefb
github.com/beefsack/go-rate v0.0.0-20180408011153-efa7637bb9b6
github.com/bmizerany/perks v0.0.0-20141205001514-d9a9656a3a4b
github.com/gogo/protobuf v1.3.1
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/klauspost/compress v1.10.8
github.com/kr/pretty v0.2.0 // indirect
github.com/netdata/pulsar-client-go/oauth2 v0.0.0-20200715083626-b9f8c5cedefb
github.com/pierrec/lz4 v2.0.5+incompatible
github.com/pkg/errors v0.9.1
github.com/prometheus/client_golang v1.7.1
github.com/sirupsen/logrus v1.4.2
github.com/spaolacci/murmur3 v1.1.0
github.com/spf13/cobra v0.0.3
github.com/spf13/pflag v1.0.3 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/stretchr/testify v1.4.0
github.com/yahoo/athenz v1.8.55
)

replace github.com/apache/pulsar-client-go/oauth2 => ./oauth2
replace github.com/netdata/pulsar-client-go/oauth2 => ./oauth2
7 changes: 3 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,8 @@ github.com/klauspost/compress v1.10.8/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYs
github.com/konsorten/go-windows-terminal-sequences v1.0.1 h1:mweAR1A6xJ3oS2pRaGiHgQ4OO8tzTaLawm8vnODuwDk=
github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc=
github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI=
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
github.com/kr/pretty v0.2.0 h1:s5hAObm+yFO5uHYt5dYjxi2rXrsnmRpJx4OYvIWUaQs=
github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI=
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
Expand Down Expand Up @@ -138,8 +137,8 @@ github.com/spaolacci/murmur3 v1.1.0 h1:7c1g84S4BPRrfL5Xrdp6fOJ206sU9y293DDHaoy0b
github.com/spaolacci/murmur3 v1.1.0/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA=
github.com/spf13/cobra v0.0.3 h1:ZlrZ4XsMRm04Fr5pSFxBgfND2EBVa1nLpiy1stUsX/8=
github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ=
github.com/spf13/pflag v1.0.3 h1:zPAT6CGy6wXeQ7NtTnaTerfKOsV6V6F8agHXFiazDkg=
github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.2.0 h1:Hbg2NidpLE8veEBkEZTL3CvlkUIVzuU9jDplZO54c48=
Expand Down
2 changes: 1 addition & 1 deletion oauth2/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"fmt"
"time"

"github.com/apache/pulsar-client-go/oauth2/clock"
"github.com/netdata/pulsar-client-go/oauth2/clock"
"github.com/dgrijalva/jwt-go"
"golang.org/x/oauth2"
)
Expand Down
6 changes: 3 additions & 3 deletions oauth2/cache/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ import (
"sync"
"time"

"github.com/apache/pulsar-client-go/oauth2"
"github.com/apache/pulsar-client-go/oauth2/store"
"github.com/netdata/pulsar-client-go/oauth2"
"github.com/netdata/pulsar-client-go/oauth2/store"

xoauth2 "golang.org/x/oauth2"
"github.com/apache/pulsar-client-go/oauth2/clock"
"github.com/netdata/pulsar-client-go/oauth2/clock"
)

// A CachingTokenSource is anything that can return a token, and is backed by a cache.
Expand Down
2 changes: 1 addition & 1 deletion oauth2/client_credentials_flow.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ package oauth2
import (
"net/http"

"github.com/apache/pulsar-client-go/oauth2/clock"
"github.com/netdata/pulsar-client-go/oauth2/clock"

"github.com/pkg/errors"
)
Expand Down
4 changes: 2 additions & 2 deletions oauth2/client_credentials_flow_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import (
"errors"
"time"

"github.com/apache/pulsar-client-go/oauth2/clock"
"github.com/apache/pulsar-client-go/oauth2/clock/testing"
"github.com/netdata/pulsar-client-go/oauth2/clock"
"github.com/netdata/pulsar-client-go/oauth2/clock/testing"

. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
Expand Down
2 changes: 1 addition & 1 deletion oauth2/clock/testing/fake_clock.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"sync"
"time"

"github.com/apache/pulsar-client-go/oauth2/clock"
"github.com/netdata/pulsar-client-go/oauth2/clock"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion oauth2/device_code_flow.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"net/http"
"time"

"github.com/apache/pulsar-client-go/oauth2/clock"
"github.com/netdata/pulsar-client-go/oauth2/clock"

"github.com/pkg/errors"
)
Expand Down
4 changes: 2 additions & 2 deletions oauth2/device_code_flow_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import (
"errors"
"time"

"github.com/apache/pulsar-client-go/oauth2/clock"
"github.com/apache/pulsar-client-go/oauth2/clock/testing"
"github.com/netdata/pulsar-client-go/oauth2/clock"
"github.com/netdata/pulsar-client-go/oauth2/clock/testing"
"golang.org/x/oauth2"

. "github.com/onsi/ginkgo"
Expand Down
2 changes: 1 addition & 1 deletion oauth2/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/apache/pulsar-client-go/oauth2
module github.com/netdata/pulsar-client-go/oauth2

go 1.13

Expand Down
4 changes: 2 additions & 2 deletions oauth2/store/keyring.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ import (
"sync"

"github.com/99designs/keyring"
"github.com/apache/pulsar-client-go/oauth2"
"github.com/apache/pulsar-client-go/oauth2/clock"
"github.com/netdata/pulsar-client-go/oauth2"
"github.com/netdata/pulsar-client-go/oauth2/clock"
)

type KeyringStore struct {
Expand Down
4 changes: 2 additions & 2 deletions oauth2/store/memory.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ package store
import (
"sync"

"github.com/apache/pulsar-client-go/oauth2"
"github.com/apache/pulsar-client-go/oauth2/clock"
"github.com/netdata/pulsar-client-go/oauth2"
"github.com/netdata/pulsar-client-go/oauth2/clock"
)

type MemoryStore struct {
Expand Down
2 changes: 1 addition & 1 deletion oauth2/store/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ package store
import (
"errors"

"github.com/apache/pulsar-client-go/oauth2"
"github.com/netdata/pulsar-client-go/oauth2"
)

// ErrNoAuthenticationData indicates that stored authentication data is not available
Expand Down
2 changes: 1 addition & 1 deletion perf/perf-consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (

log "github.com/sirupsen/logrus"

"github.com/apache/pulsar-client-go/pulsar"
"github.com/netdata/pulsar-client-go/pulsar"
)

// ConsumeArgs define the parameters required by consume
Expand Down
2 changes: 1 addition & 1 deletion perf/perf-producer.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (

log "github.com/sirupsen/logrus"

"github.com/apache/pulsar-client-go/pulsar"
"github.com/netdata/pulsar-client-go/pulsar"
)

// ProduceArgs define the parameters required by produce
Expand Down
2 changes: 1 addition & 1 deletion perf/pulsar-perf-go.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (

log "github.com/sirupsen/logrus"

"github.com/apache/pulsar-client-go/pulsar"
"github.com/netdata/pulsar-client-go/pulsar"
"github.com/prometheus/client_golang/prometheus/promhttp"
)

Expand Down
2 changes: 1 addition & 1 deletion pulsar/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"crypto/tls"
"time"

"github.com/apache/pulsar-client-go/pulsar/internal/auth"
"github.com/netdata/pulsar-client-go/pulsar/internal/auth"
)

func NewClient(options ClientOptions) (Client, error) {
Expand Down
6 changes: 3 additions & 3 deletions pulsar/client_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ import (

log "github.com/sirupsen/logrus"

"github.com/apache/pulsar-client-go/pulsar/internal"
"github.com/apache/pulsar-client-go/pulsar/internal/auth"
pb "github.com/apache/pulsar-client-go/pulsar/internal/pulsar_proto"
"github.com/netdata/pulsar-client-go/pulsar/internal"
"github.com/netdata/pulsar-client-go/pulsar/internal/auth"
pb "github.com/netdata/pulsar-client-go/pulsar/internal/pulsar_proto"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion pulsar/client_impl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"testing"
"time"

"github.com/apache/pulsar-client-go/pulsar/internal/auth"
"github.com/netdata/pulsar-client-go/pulsar/internal/auth"
"github.com/stretchr/testify/assert"
)

Expand Down
4 changes: 2 additions & 2 deletions pulsar/consumer_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ import (

log "github.com/sirupsen/logrus"

"github.com/apache/pulsar-client-go/pulsar/internal"
pb "github.com/apache/pulsar-client-go/pulsar/internal/pulsar_proto"
"github.com/netdata/pulsar-client-go/pulsar/internal"
pb "github.com/netdata/pulsar-client-go/pulsar/internal/pulsar_proto"
)

var (
Expand Down
6 changes: 3 additions & 3 deletions pulsar/consumer_partition.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ import (

log "github.com/sirupsen/logrus"

"github.com/apache/pulsar-client-go/pulsar/internal"
"github.com/apache/pulsar-client-go/pulsar/internal/compression"
pb "github.com/apache/pulsar-client-go/pulsar/internal/pulsar_proto"
"github.com/netdata/pulsar-client-go/pulsar/internal"
"github.com/netdata/pulsar-client-go/pulsar/internal/compression"
pb "github.com/netdata/pulsar-client-go/pulsar/internal/pulsar_proto"
)

var (
Expand Down
6 changes: 3 additions & 3 deletions pulsar/consumer_partition_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ package pulsar
import (
"testing"

"github.com/apache/pulsar-client-go/pulsar/internal/compression"
pb "github.com/apache/pulsar-client-go/pulsar/internal/pulsar_proto"
"github.com/netdata/pulsar-client-go/pulsar/internal/compression"
pb "github.com/netdata/pulsar-client-go/pulsar/internal/pulsar_proto"

"github.com/stretchr/testify/assert"

"github.com/apache/pulsar-client-go/pulsar/internal"
"github.com/netdata/pulsar-client-go/pulsar/internal"
)

func TestSingleMessageIDNoAckTracker(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion pulsar/consumer_regex.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (

log "github.com/sirupsen/logrus"

"github.com/apache/pulsar-client-go/pulsar/internal"
"github.com/netdata/pulsar-client-go/pulsar/internal"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion pulsar/consumer_regex_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (

"github.com/stretchr/testify/assert"

"github.com/apache/pulsar-client-go/pulsar/internal"
"github.com/netdata/pulsar-client-go/pulsar/internal"
)

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

"github.com/apache/pulsar-client-go/pulsar/internal"
"github.com/netdata/pulsar-client-go/pulsar/internal"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion pulsar/dlq_router.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"errors"
"time"

"github.com/apache/pulsar-client-go/pulsar/internal"
"github.com/netdata/pulsar-client-go/pulsar/internal"
log "github.com/sirupsen/logrus"
)

Expand Down
4 changes: 2 additions & 2 deletions pulsar/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ import (

"github.com/gogo/protobuf/proto"

"github.com/apache/pulsar-client-go/pulsar/internal"
pb "github.com/apache/pulsar-client-go/pulsar/internal/pulsar_proto"
"github.com/netdata/pulsar-client-go/pulsar/internal"
pb "github.com/netdata/pulsar-client-go/pulsar/internal/pulsar_proto"
)

// NewUnexpectedErrMsg instantiates an ErrUnexpectedMsg error.
Expand Down
2 changes: 1 addition & 1 deletion pulsar/impl_message.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (

"github.com/gogo/protobuf/proto"

pb "github.com/apache/pulsar-client-go/pulsar/internal/pulsar_proto"
pb "github.com/netdata/pulsar-client-go/pulsar/internal/pulsar_proto"
)

type messageID struct {
Expand Down
8 changes: 4 additions & 4 deletions pulsar/internal/auth/oauth2.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ import (
"crypto/tls"
"fmt"

"github.com/apache/pulsar-client-go/oauth2"
"github.com/apache/pulsar-client-go/oauth2/cache"
"github.com/apache/pulsar-client-go/oauth2/clock"
"github.com/apache/pulsar-client-go/oauth2/store"
"github.com/netdata/pulsar-client-go/oauth2"
"github.com/netdata/pulsar-client-go/oauth2/cache"
"github.com/netdata/pulsar-client-go/oauth2/clock"
"github.com/netdata/pulsar-client-go/oauth2/store"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions pulsar/internal/batch_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ package internal
import (
"time"

"github.com/apache/pulsar-client-go/pulsar/internal/compression"
pb "github.com/apache/pulsar-client-go/pulsar/internal/pulsar_proto"
"github.com/netdata/pulsar-client-go/pulsar/internal/compression"
pb "github.com/netdata/pulsar-client-go/pulsar/internal/pulsar_proto"
"github.com/gogo/protobuf/proto"

log "github.com/sirupsen/logrus"
Expand Down
Loading

0 comments on commit 198e3b2

Please sign in to comment.