diff --git a/.travis.yml b/.travis.yml index a06ac2c32a..6476597cd0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,7 +17,7 @@ matrix: env: - GO111MODULE=on -go_import_path: github.com/go-redis/redis +go_import_path: github.com/edwindvinas/redis before_install: - curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.17.1 diff --git a/CHANGELOG.md b/v7/CHANGELOG.md similarity index 94% rename from CHANGELOG.md rename to v7/CHANGELOG.md index cd9af8f85a..a1a2f8e533 100644 --- a/CHANGELOG.md +++ b/v7/CHANGELOG.md @@ -32,4 +32,4 @@ ## v6.12 -- ClusterClient got new option called `ClusterSlots` which allows to build cluster of normal Redis Servers that don't have cluster mode enabled. See https://godoc.org/github.com/go-redis/redis#example-NewClusterClient--ManualSetup +- ClusterClient got new option called `ClusterSlots` which allows to build cluster of normal Redis Servers that don't have cluster mode enabled. See https://godoc.org/github.com/edwindvinas/redis#example-NewClusterClient--ManualSetup diff --git a/LICENSE b/v7/LICENSE similarity index 95% rename from LICENSE rename to v7/LICENSE index 298bed9bea..0513f8c9c8 100644 --- a/LICENSE +++ b/v7/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2013 The github.com/go-redis/redis Authors. +Copyright (c) 2013 The github.com/edwindvinas/redis Authors. All rights reserved. Redistribution and use in source and binary forms, with or without diff --git a/Makefile b/v7/Makefile similarity index 100% rename from Makefile rename to v7/Makefile diff --git a/README.md b/v7/README.md similarity index 61% rename from README.md rename to v7/README.md index 5aab4d88b7..e5de1126ae 100644 --- a/README.md +++ b/v7/README.md @@ -1,42 +1,42 @@ # Redis client for Golang [![Build Status](https://travis-ci.org/go-redis/redis.png?branch=master)](https://travis-ci.org/go-redis/redis) -[![GoDoc](https://godoc.org/github.com/go-redis/redis?status.svg)](https://godoc.org/github.com/go-redis/redis) +[![GoDoc](https://godoc.org/github.com/edwindvinas/redis?status.svg)](https://godoc.org/github.com/edwindvinas/redis) [![Airbrake](https://img.shields.io/badge/kudos-airbrake.io-orange.svg)](https://airbrake.io) Supports: - Redis 3 commands except QUIT, MONITOR, SLOWLOG and SYNC. - Automatic connection pooling with [circuit breaker](https://en.wikipedia.org/wiki/Circuit_breaker_design_pattern) support. -- [Pub/Sub](https://godoc.org/github.com/go-redis/redis#PubSub). -- [Transactions](https://godoc.org/github.com/go-redis/redis#example-Client-TxPipeline). -- [Pipeline](https://godoc.org/github.com/go-redis/redis#example-Client-Pipeline) and [TxPipeline](https://godoc.org/github.com/go-redis/redis#example-Client-TxPipeline). -- [Scripting](https://godoc.org/github.com/go-redis/redis#Script). -- [Timeouts](https://godoc.org/github.com/go-redis/redis#Options). -- [Redis Sentinel](https://godoc.org/github.com/go-redis/redis#NewFailoverClient). -- [Redis Cluster](https://godoc.org/github.com/go-redis/redis#NewClusterClient). -- [Cluster of Redis Servers](https://godoc.org/github.com/go-redis/redis#example-NewClusterClient--ManualSetup) without using cluster mode and Redis Sentinel. -- [Ring](https://godoc.org/github.com/go-redis/redis#NewRing). -- [Instrumentation](https://godoc.org/github.com/go-redis/redis#ex-package--Instrumentation). +- [Pub/Sub](https://godoc.org/github.com/edwindvinas/redis#PubSub). +- [Transactions](https://godoc.org/github.com/edwindvinas/redis#example-Client-TxPipeline). +- [Pipeline](https://godoc.org/github.com/edwindvinas/redis#example-Client-Pipeline) and [TxPipeline](https://godoc.org/github.com/edwindvinas/redis#example-Client-TxPipeline). +- [Scripting](https://godoc.org/github.com/edwindvinas/redis#Script). +- [Timeouts](https://godoc.org/github.com/edwindvinas/redis#Options). +- [Redis Sentinel](https://godoc.org/github.com/edwindvinas/redis#NewFailoverClient). +- [Redis Cluster](https://godoc.org/github.com/edwindvinas/redis#NewClusterClient). +- [Cluster of Redis Servers](https://godoc.org/github.com/edwindvinas/redis#example-NewClusterClient--ManualSetup) without using cluster mode and Redis Sentinel. +- [Ring](https://godoc.org/github.com/edwindvinas/redis#NewRing). +- [Instrumentation](https://godoc.org/github.com/edwindvinas/redis#ex-package--Instrumentation). - [Cache friendly](https://github.com/go-redis/cache). -- [Rate limiting](https://github.com/go-redis/redis_rate). +- [Rate limiting](https://github.com/edwindvinas/redis_rate). - [Distributed Locks](https://github.com/bsm/redislock). -API docs: https://godoc.org/github.com/go-redis/redis. -Examples: https://godoc.org/github.com/go-redis/redis#pkg-examples. +API docs: https://godoc.org/github.com/edwindvinas/redis. +Examples: https://godoc.org/github.com/edwindvinas/redis#pkg-examples. ## Installation Install: ```shell -go get -u github.com/go-redis/redis +go get -u github.com/edwindvinas/redis ``` Import: ```go -import "github.com/go-redis/redis" +import "github.com/edwindvinas/redis" ``` ## Quickstart @@ -81,7 +81,7 @@ func ExampleClient() { ## Howto -Please go through [examples](https://godoc.org/github.com/go-redis/redis#pkg-examples) to get an idea how to use this package. +Please go through [examples](https://godoc.org/github.com/edwindvinas/redis#pkg-examples) to get an idea how to use this package. ## Look and feel diff --git a/bench_test.go b/v7/bench_test.go similarity index 99% rename from bench_test.go rename to v7/bench_test.go index f670a7c5bc..c514125137 100644 --- a/bench_test.go +++ b/v7/bench_test.go @@ -8,7 +8,7 @@ import ( "testing" "time" - "github.com/go-redis/redis/v7" + "github.com/edwindvinas/redis/v7" ) func benchmarkRedisClient(poolSize int) *redis.Client { diff --git a/cluster.go b/v7/cluster.go similarity index 99% rename from cluster.go rename to v7/cluster.go index 534833322e..f8a240dc56 100644 --- a/cluster.go +++ b/v7/cluster.go @@ -13,10 +13,10 @@ import ( "sync/atomic" "time" - "github.com/go-redis/redis/v7/internal" - "github.com/go-redis/redis/v7/internal/hashtag" - "github.com/go-redis/redis/v7/internal/pool" - "github.com/go-redis/redis/v7/internal/proto" + "github.com/edwindvinas/redis/v7/internal" + "github.com/edwindvinas/redis/v7/internal/hashtag" + "github.com/edwindvinas/redis/v7/internal/pool" + "github.com/edwindvinas/redis/v7/internal/proto" ) var errClusterNoNodes = fmt.Errorf("redis: cluster has no nodes") diff --git a/cluster_commands.go b/v7/cluster_commands.go similarity index 100% rename from cluster_commands.go rename to v7/cluster_commands.go diff --git a/cluster_test.go b/v7/cluster_test.go similarity index 99% rename from cluster_test.go rename to v7/cluster_test.go index f4b7e366c2..7214320bdf 100644 --- a/cluster_test.go +++ b/v7/cluster_test.go @@ -9,8 +9,8 @@ import ( "sync" "time" - "github.com/go-redis/redis/v7" - "github.com/go-redis/redis/v7/internal/hashtag" + "github.com/edwindvinas/redis/v7" + "github.com/edwindvinas/redis/v7/internal/hashtag" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" diff --git a/command.go b/v7/command.go similarity index 99% rename from command.go rename to v7/command.go index 1378370eac..85806a8b9d 100644 --- a/command.go +++ b/v7/command.go @@ -7,9 +7,9 @@ import ( "strings" "time" - "github.com/go-redis/redis/v7/internal" - "github.com/go-redis/redis/v7/internal/proto" - "github.com/go-redis/redis/v7/internal/util" + "github.com/edwindvinas/redis/v7/internal" + "github.com/edwindvinas/redis/v7/internal/proto" + "github.com/edwindvinas/redis/v7/internal/util" ) type Cmder interface { diff --git a/command_test.go b/v7/command_test.go similarity index 98% rename from command_test.go rename to v7/command_test.go index a0d753e8d0..d5d50078cc 100644 --- a/command_test.go +++ b/v7/command_test.go @@ -3,7 +3,7 @@ package redis_test import ( "time" - "github.com/go-redis/redis/v7" + "github.com/edwindvinas/redis/v7" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" diff --git a/commands.go b/v7/commands.go similarity index 99% rename from commands.go rename to v7/commands.go index 7cb5b25534..ac4b16dde4 100644 --- a/commands.go +++ b/v7/commands.go @@ -5,7 +5,7 @@ import ( "io" "time" - "github.com/go-redis/redis/v7/internal" + "github.com/edwindvinas/redis/v7/internal" ) func usePrecise(dur time.Duration) bool { diff --git a/commands_test.go b/v7/commands_test.go similarity index 99% rename from commands_test.go rename to v7/commands_test.go index 70c448a92e..484bdb222a 100644 --- a/commands_test.go +++ b/v7/commands_test.go @@ -9,8 +9,8 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - "github.com/go-redis/redis/v7" - "github.com/go-redis/redis/v7/internal/proto" + "github.com/edwindvinas/redis/v7" + "github.com/edwindvinas/redis/v7/internal/proto" ) var _ = Describe("Commands", func() { diff --git a/doc.go b/v7/doc.go similarity index 100% rename from doc.go rename to v7/doc.go diff --git a/error.go b/v7/error.go similarity index 97% rename from error.go rename to v7/error.go index a84c44f125..a31227b31c 100644 --- a/error.go +++ b/v7/error.go @@ -6,7 +6,7 @@ import ( "net" "strings" - "github.com/go-redis/redis/v7/internal/proto" + "github.com/edwindvinas/redis/v7/internal/proto" ) func isRetryableError(err error, retryTimeout bool) bool { diff --git a/example_instrumentation_test.go b/v7/example_instrumentation_test.go similarity index 97% rename from example_instrumentation_test.go rename to v7/example_instrumentation_test.go index cbe03dad37..1eaac8ccf5 100644 --- a/example_instrumentation_test.go +++ b/v7/example_instrumentation_test.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/go-redis/redis/v7" + "github.com/edwindvinas/redis/v7" ) type redisHook struct{} diff --git a/example_test.go b/v7/example_test.go similarity index 99% rename from example_test.go rename to v7/example_test.go index d643b94135..efa69f594e 100644 --- a/example_test.go +++ b/v7/example_test.go @@ -6,7 +6,7 @@ import ( "sync" "time" - "github.com/go-redis/redis/v7" + "github.com/edwindvinas/redis/v7" ) var rdb *redis.Client diff --git a/export_test.go b/v7/export_test.go similarity index 93% rename from export_test.go rename to v7/export_test.go index 899bb9ae31..f3491663a4 100644 --- a/export_test.go +++ b/v7/export_test.go @@ -5,8 +5,8 @@ import ( "net" "strings" - "github.com/go-redis/redis/v7/internal/hashtag" - "github.com/go-redis/redis/v7/internal/pool" + "github.com/edwindvinas/redis/v7/internal/hashtag" + "github.com/edwindvinas/redis/v7/internal/pool" ) func (c *baseClient) Pool() pool.Pooler { diff --git a/go.mod b/v7/go.mod similarity index 68% rename from go.mod rename to v7/go.mod index 609f08b147..955ec67441 100644 --- a/go.mod +++ b/v7/go.mod @@ -1,4 +1,4 @@ -module github.com/go-redis/redis/v7 +module github.com/edwindvinas/redis/v7 require ( github.com/onsi/ginkgo v1.8.0 diff --git a/go.sum b/v7/go.sum similarity index 100% rename from go.sum rename to v7/go.sum diff --git a/internal/consistenthash/consistenthash.go b/v7/internal/consistenthash/consistenthash.go similarity index 100% rename from internal/consistenthash/consistenthash.go rename to v7/internal/consistenthash/consistenthash.go diff --git a/internal/consistenthash/consistenthash_test.go b/v7/internal/consistenthash/consistenthash_test.go similarity index 100% rename from internal/consistenthash/consistenthash_test.go rename to v7/internal/consistenthash/consistenthash_test.go diff --git a/internal/hashtag/hashtag.go b/v7/internal/hashtag/hashtag.go similarity index 100% rename from internal/hashtag/hashtag.go rename to v7/internal/hashtag/hashtag.go diff --git a/internal/hashtag/hashtag_test.go b/v7/internal/hashtag/hashtag_test.go similarity index 100% rename from internal/hashtag/hashtag_test.go rename to v7/internal/hashtag/hashtag_test.go diff --git a/internal/internal.go b/v7/internal/internal.go similarity index 100% rename from internal/internal.go rename to v7/internal/internal.go diff --git a/internal/internal_test.go b/v7/internal/internal_test.go similarity index 100% rename from internal/internal_test.go rename to v7/internal/internal_test.go diff --git a/internal/log.go b/v7/internal/log.go similarity index 100% rename from internal/log.go rename to v7/internal/log.go diff --git a/internal/once.go b/v7/internal/once.go similarity index 100% rename from internal/once.go rename to v7/internal/once.go diff --git a/internal/pool/bench_test.go b/v7/internal/pool/bench_test.go similarity index 97% rename from internal/pool/bench_test.go rename to v7/internal/pool/bench_test.go index 0d3620ef81..4bcccda41a 100644 --- a/internal/pool/bench_test.go +++ b/v7/internal/pool/bench_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - "github.com/go-redis/redis/v7/internal/pool" + "github.com/edwindvinas/redis/v7/internal/pool" ) type poolGetPutBenchmark struct { diff --git a/internal/pool/conn.go b/v7/internal/pool/conn.go similarity index 97% rename from internal/pool/conn.go rename to v7/internal/pool/conn.go index e9a2585463..96d660494d 100644 --- a/internal/pool/conn.go +++ b/v7/internal/pool/conn.go @@ -6,7 +6,7 @@ import ( "sync/atomic" "time" - "github.com/go-redis/redis/v7/internal/proto" + "github.com/edwindvinas/redis/v7/internal/proto" ) var noDeadline = time.Time{} diff --git a/internal/pool/export_test.go b/v7/internal/pool/export_test.go similarity index 100% rename from internal/pool/export_test.go rename to v7/internal/pool/export_test.go diff --git a/internal/pool/main_test.go b/v7/internal/pool/main_test.go similarity index 100% rename from internal/pool/main_test.go rename to v7/internal/pool/main_test.go diff --git a/internal/pool/pool.go b/v7/internal/pool/pool.go similarity index 99% rename from internal/pool/pool.go rename to v7/internal/pool/pool.go index bbf5b30048..e92c6539ef 100644 --- a/internal/pool/pool.go +++ b/v7/internal/pool/pool.go @@ -8,7 +8,7 @@ import ( "sync/atomic" "time" - "github.com/go-redis/redis/v7/internal" + "github.com/edwindvinas/redis/v7/internal" ) var ErrClosed = errors.New("redis: client is closed") diff --git a/internal/pool/pool_single.go b/v7/internal/pool/pool_single.go similarity index 100% rename from internal/pool/pool_single.go rename to v7/internal/pool/pool_single.go diff --git a/internal/pool/pool_sticky.go b/v7/internal/pool/pool_sticky.go similarity index 100% rename from internal/pool/pool_sticky.go rename to v7/internal/pool/pool_sticky.go diff --git a/internal/pool/pool_test.go b/v7/internal/pool/pool_test.go similarity index 99% rename from internal/pool/pool_test.go rename to v7/internal/pool/pool_test.go index f29600f124..b367df9341 100644 --- a/internal/pool/pool_test.go +++ b/v7/internal/pool/pool_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - "github.com/go-redis/redis/v7/internal/pool" + "github.com/edwindvinas/redis/v7/internal/pool" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" diff --git a/internal/proto/proto_test.go b/v7/internal/proto/proto_test.go similarity index 100% rename from internal/proto/proto_test.go rename to v7/internal/proto/proto_test.go diff --git a/internal/proto/reader.go b/v7/internal/proto/reader.go similarity index 99% rename from internal/proto/reader.go rename to v7/internal/proto/reader.go index 24fc0bd86f..80f555304a 100644 --- a/internal/proto/reader.go +++ b/v7/internal/proto/reader.go @@ -5,7 +5,7 @@ import ( "fmt" "io" - "github.com/go-redis/redis/v7/internal/util" + "github.com/edwindvinas/redis/v7/internal/util" ) const ( diff --git a/internal/proto/reader_test.go b/v7/internal/proto/reader_test.go similarity index 96% rename from internal/proto/reader_test.go rename to v7/internal/proto/reader_test.go index 1e87f34bdd..107a053928 100644 --- a/internal/proto/reader_test.go +++ b/v7/internal/proto/reader_test.go @@ -4,7 +4,7 @@ import ( "bytes" "testing" - "github.com/go-redis/redis/v7/internal/proto" + "github.com/edwindvinas/redis/v7/internal/proto" ) func BenchmarkReader_ParseReply_Status(b *testing.B) { diff --git a/internal/proto/scan.go b/v7/internal/proto/scan.go similarity index 98% rename from internal/proto/scan.go rename to v7/internal/proto/scan.go index 90c1e4ae6e..b8df6248d2 100644 --- a/internal/proto/scan.go +++ b/v7/internal/proto/scan.go @@ -5,7 +5,7 @@ import ( "fmt" "reflect" - "github.com/go-redis/redis/v7/internal/util" + "github.com/edwindvinas/redis/v7/internal/util" ) func Scan(b []byte, v interface{}) error { diff --git a/internal/proto/scan_test.go b/v7/internal/proto/scan_test.go similarity index 100% rename from internal/proto/scan_test.go rename to v7/internal/proto/scan_test.go diff --git a/internal/proto/write_buffer_test.go b/v7/internal/proto/write_buffer_test.go similarity index 97% rename from internal/proto/write_buffer_test.go rename to v7/internal/proto/write_buffer_test.go index 4a9339ee2b..9648b371b2 100644 --- a/internal/proto/write_buffer_test.go +++ b/v7/internal/proto/write_buffer_test.go @@ -7,7 +7,7 @@ import ( "testing" "time" - "github.com/go-redis/redis/v7/internal/proto" + "github.com/edwindvinas/redis/v7/internal/proto" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" diff --git a/internal/proto/writer.go b/v7/internal/proto/writer.go similarity index 98% rename from internal/proto/writer.go rename to v7/internal/proto/writer.go index cd83d65808..3b0647cc7d 100644 --- a/internal/proto/writer.go +++ b/v7/internal/proto/writer.go @@ -8,7 +8,7 @@ import ( "strconv" "time" - "github.com/go-redis/redis/v7/internal/util" + "github.com/edwindvinas/redis/v7/internal/util" ) type Writer struct { diff --git a/internal/util.go b/v7/internal/util.go similarity index 93% rename from internal/util.go rename to v7/internal/util.go index 844f34bad8..d33d209675 100644 --- a/internal/util.go +++ b/v7/internal/util.go @@ -4,7 +4,7 @@ import ( "context" "time" - "github.com/go-redis/redis/v7/internal/util" + "github.com/edwindvinas/redis/v7/internal/util" ) func Sleep(ctx context.Context, dur time.Duration) error { diff --git a/internal/util/safe.go b/v7/internal/util/safe.go similarity index 100% rename from internal/util/safe.go rename to v7/internal/util/safe.go diff --git a/internal/util/strconv.go b/v7/internal/util/strconv.go similarity index 100% rename from internal/util/strconv.go rename to v7/internal/util/strconv.go diff --git a/internal/util/unsafe.go b/v7/internal/util/unsafe.go similarity index 100% rename from internal/util/unsafe.go rename to v7/internal/util/unsafe.go diff --git a/internal_test.go b/v7/internal_test.go similarity index 100% rename from internal_test.go rename to v7/internal_test.go diff --git a/iterator.go b/v7/iterator.go similarity index 100% rename from iterator.go rename to v7/iterator.go diff --git a/iterator_test.go b/v7/iterator_test.go similarity index 98% rename from iterator_test.go rename to v7/iterator_test.go index fce3ea1f7a..afe75ecdd9 100644 --- a/iterator_test.go +++ b/v7/iterator_test.go @@ -3,7 +3,7 @@ package redis_test import ( "fmt" - "github.com/go-redis/redis/v7" + "github.com/edwindvinas/redis/v7" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" diff --git a/main_test.go b/v7/main_test.go similarity index 99% rename from main_test.go rename to v7/main_test.go index 0ffa75f216..873013818f 100644 --- a/main_test.go +++ b/v7/main_test.go @@ -11,7 +11,7 @@ import ( "testing" "time" - "github.com/go-redis/redis/v7" + "github.com/edwindvinas/redis/v7" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" diff --git a/options.go b/v7/options.go similarity index 99% rename from options.go rename to v7/options.go index 54c6fae5e6..88c039c91b 100644 --- a/options.go +++ b/v7/options.go @@ -12,7 +12,7 @@ import ( "strings" "time" - "github.com/go-redis/redis/v7/internal/pool" + "github.com/edwindvinas/redis/v7/internal/pool" ) // Limiter is the interface of a rate limiter or a circuit breaker. diff --git a/options_test.go b/v7/options_test.go similarity index 100% rename from options_test.go rename to v7/options_test.go diff --git a/pipeline.go b/v7/pipeline.go similarity index 98% rename from pipeline.go rename to v7/pipeline.go index d48566a787..c4f8e8bd72 100644 --- a/pipeline.go +++ b/v7/pipeline.go @@ -4,7 +4,7 @@ import ( "context" "sync" - "github.com/go-redis/redis/v7/internal/pool" + "github.com/edwindvinas/redis/v7/internal/pool" ) type pipelineExecer func(context.Context, []Cmder) error diff --git a/pipeline_test.go b/v7/pipeline_test.go similarity index 98% rename from pipeline_test.go rename to v7/pipeline_test.go index fb82e4eb4f..3542c9ca57 100644 --- a/pipeline_test.go +++ b/v7/pipeline_test.go @@ -1,7 +1,7 @@ package redis_test import ( - "github.com/go-redis/redis/v7" + "github.com/edwindvinas/redis/v7" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" diff --git a/pool_test.go b/v7/pool_test.go similarity index 99% rename from pool_test.go rename to v7/pool_test.go index ab44308fb9..2cb11d88a0 100644 --- a/pool_test.go +++ b/v7/pool_test.go @@ -4,7 +4,7 @@ import ( "context" "time" - "github.com/go-redis/redis/v7" + "github.com/edwindvinas/redis/v7" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" diff --git a/pubsub.go b/v7/pubsub.go similarity index 98% rename from pubsub.go rename to v7/pubsub.go index c465078eed..7ae9de29bb 100644 --- a/pubsub.go +++ b/v7/pubsub.go @@ -8,9 +8,9 @@ import ( "sync" "time" - "github.com/go-redis/redis/v7/internal" - "github.com/go-redis/redis/v7/internal/pool" - "github.com/go-redis/redis/v7/internal/proto" + "github.com/edwindvinas/redis/v7/internal" + "github.com/edwindvinas/redis/v7/internal/pool" + "github.com/edwindvinas/redis/v7/internal/proto" ) const pingTimeout = 30 * time.Second diff --git a/pubsub_test.go b/v7/pubsub_test.go similarity index 99% rename from pubsub_test.go rename to v7/pubsub_test.go index 1544c9d5bd..47b98a8dbb 100644 --- a/pubsub_test.go +++ b/v7/pubsub_test.go @@ -6,7 +6,7 @@ import ( "sync" "time" - "github.com/go-redis/redis/v7" + "github.com/edwindvinas/redis/v7" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" diff --git a/race_test.go b/v7/race_test.go similarity index 99% rename from race_test.go rename to v7/race_test.go index 088b00865e..29164fefd9 100644 --- a/race_test.go +++ b/v7/race_test.go @@ -10,7 +10,7 @@ import ( "testing" "time" - "github.com/go-redis/redis/v7" + "github.com/edwindvinas/redis/v7" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" diff --git a/redis.go b/v7/redis.go similarity index 99% rename from redis.go rename to v7/redis.go index feb354e8a2..242f2c0277 100644 --- a/redis.go +++ b/v7/redis.go @@ -6,9 +6,9 @@ import ( "log" "time" - "github.com/go-redis/redis/v7/internal" - "github.com/go-redis/redis/v7/internal/pool" - "github.com/go-redis/redis/v7/internal/proto" + "github.com/edwindvinas/redis/v7/internal" + "github.com/edwindvinas/redis/v7/internal/pool" + "github.com/edwindvinas/redis/v7/internal/proto" ) // Nil reply returned by Redis when key does not exist. diff --git a/redis_test.go b/v7/redis_test.go similarity index 99% rename from redis_test.go rename to v7/redis_test.go index cd9cd1be10..3941ed5d23 100644 --- a/redis_test.go +++ b/v7/redis_test.go @@ -6,7 +6,7 @@ import ( "net" "time" - "github.com/go-redis/redis/v7" + "github.com/edwindvinas/redis/v7" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" diff --git a/result.go b/v7/result.go similarity index 100% rename from result.go rename to v7/result.go diff --git a/ring.go b/v7/ring.go similarity index 98% rename from ring.go rename to v7/ring.go index 20c5e11c5c..d59b27ede2 100644 --- a/ring.go +++ b/v7/ring.go @@ -10,10 +10,10 @@ import ( "sync/atomic" "time" - "github.com/go-redis/redis/v7/internal" - "github.com/go-redis/redis/v7/internal/consistenthash" - "github.com/go-redis/redis/v7/internal/hashtag" - "github.com/go-redis/redis/v7/internal/pool" + "github.com/edwindvinas/redis/v7/internal" + "github.com/edwindvinas/redis/v7/internal/consistenthash" + "github.com/edwindvinas/redis/v7/internal/hashtag" + "github.com/edwindvinas/redis/v7/internal/pool" ) // Hash is type of hash function used in consistent hash. diff --git a/ring_test.go b/v7/ring_test.go similarity index 99% rename from ring_test.go rename to v7/ring_test.go index e35daeb80e..91d02768c9 100644 --- a/ring_test.go +++ b/v7/ring_test.go @@ -9,7 +9,7 @@ import ( "sync" "time" - "github.com/go-redis/redis/v7" + "github.com/edwindvinas/redis/v7" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" diff --git a/script.go b/v7/script.go similarity index 100% rename from script.go rename to v7/script.go diff --git a/sentinel.go b/v7/sentinel.go similarity index 99% rename from sentinel.go rename to v7/sentinel.go index b81e6b7cf2..e2470cd44c 100644 --- a/sentinel.go +++ b/v7/sentinel.go @@ -9,8 +9,8 @@ import ( "sync" "time" - "github.com/go-redis/redis/v7/internal" - "github.com/go-redis/redis/v7/internal/pool" + "github.com/edwindvinas/redis/v7/internal" + "github.com/edwindvinas/redis/v7/internal/pool" ) //------------------------------------------------------------------------------ diff --git a/sentinel_test.go b/v7/sentinel_test.go similarity index 98% rename from sentinel_test.go rename to v7/sentinel_test.go index 9f86ebfa7c..601d488e9b 100644 --- a/sentinel_test.go +++ b/v7/sentinel_test.go @@ -1,7 +1,7 @@ package redis_test import ( - "github.com/go-redis/redis/v7" + "github.com/edwindvinas/redis/v7" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" diff --git a/testdata/redis.conf b/v7/testdata/redis.conf similarity index 100% rename from testdata/redis.conf rename to v7/testdata/redis.conf diff --git a/tx.go b/v7/tx.go similarity index 97% rename from tx.go rename to v7/tx.go index 0dda80235a..213a0b4296 100644 --- a/tx.go +++ b/v7/tx.go @@ -3,8 +3,8 @@ package redis import ( "context" - "github.com/go-redis/redis/v7/internal/pool" - "github.com/go-redis/redis/v7/internal/proto" + "github.com/edwindvinas/redis/v7/internal/pool" + "github.com/edwindvinas/redis/v7/internal/proto" ) // TxFailedErr transaction redis failed. diff --git a/tx_test.go b/v7/tx_test.go similarity index 98% rename from tx_test.go rename to v7/tx_test.go index dd109722cc..1e4686807e 100644 --- a/tx_test.go +++ b/v7/tx_test.go @@ -5,7 +5,7 @@ import ( "strconv" "sync" - "github.com/go-redis/redis/v7" + "github.com/edwindvinas/redis/v7" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" diff --git a/universal.go b/v7/universal.go similarity index 100% rename from universal.go rename to v7/universal.go diff --git a/universal_test.go b/v7/universal_test.go similarity index 96% rename from universal_test.go rename to v7/universal_test.go index f22f69c5ce..f68a862352 100644 --- a/universal_test.go +++ b/v7/universal_test.go @@ -4,7 +4,7 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - "github.com/go-redis/redis/v7" + "github.com/edwindvinas/redis/v7" ) var _ = Describe("UniversalClient", func() {